public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] libata: use sleep instead of standby command
@ 2013-11-05  0:52 Phillip Susi
  2013-11-05  0:53 ` [PATCH 2/2] libata: avoid waking disk to check power Phillip Susi
  2013-11-05  2:23 ` [PATCH 1/2] libata: use sleep instead of standby command Aaron Lu
  0 siblings, 2 replies; 7+ messages in thread
From: Phillip Susi @ 2013-11-05  0:52 UTC (permalink / raw)
  To: linux-scsi; +Cc: linux-kernel

The ATA SLEEP mode saves some more power than SUSPEND, and
has basically the same recovery time, so use it instead.

Signed-off-by: Phillip Susi <psusi@ubuntu.com>
---
 drivers/ata/libata-scsi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 97a0cef..79b75fd 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -1362,8 +1362,8 @@ static unsigned int ata_scsi_start_stop_xlat(struct ata_queued_cmd *qc)
 		     system_entering_hibernation())
 			goto skip;
 
-		/* Issue ATA STANDBY IMMEDIATE command */
-		tf->command = ATA_CMD_STANDBYNOW1;
+		/* Issue ATA SLEEP command */
+		tf->command = ATA_CMD_SLEEP;
 	}
 
 	/*
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-11-05  2:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-05  0:52 [PATCH 1/2] libata: use sleep instead of standby command Phillip Susi
2013-11-05  0:53 ` [PATCH 2/2] libata: avoid waking disk to check power Phillip Susi
2013-11-05  2:39   ` Aaron Lu
2013-11-05  2:45     ` Phillip Susi
2013-11-05  2:23 ` [PATCH 1/2] libata: use sleep instead of standby command Aaron Lu
2013-11-05  2:39   ` Phillip Susi
2013-11-05  2:44     ` Aaron Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox