[PATCH] Make libata not powerdown drivers on PM_EVENT_FREEZE.
authorNigel Cunningham <ncunningham@cyclades.com>
Thu, 23 Mar 2006 13:22:16 +0000 (23:22 +1000)
committerJeff Garzik <jeff@garzik.org>
Fri, 24 Mar 2006 14:51:36 +0000 (09:51 -0500)
commit082776e4be791736c32baf818e50f501a7f83819
tree508fe750353ccd8f6a77cf2c882c15ab20a1e63e
parent83206a2903fd2ddb1761d906b2b3b3de17ef87f1
[PATCH] Make libata not powerdown drivers on PM_EVENT_FREEZE.

At the moment libata doesn't pass pm_message_t down ata_device_suspend.
This causes drives to be powered down when we just want a freeze,
causing unnecessary wear and tear. This patch gets pm_message_t passed
down so that it can be used to determine whether to power down the
drive.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>

 drivers/scsi/libata-core.c |    5 +++--
 drivers/scsi/libata-scsi.c |    4 ++--
 drivers/scsi/scsi_sysfs.c  |    2 +-
 include/linux/libata.h     |    4 ++--
 include/scsi/scsi_host.h   |    2 +-
 5 files changed, 9 insertions(+), 8 deletions(-)
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c
drivers/scsi/libata-scsi.c
drivers/scsi/scsi_sysfs.c
include/linux/libata.h
include/scsi/scsi_host.h