From: Phillip Susi <psusi@ubuntu.com>
To: linux-scsi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] libata: use sleep instead of standby command
Date: Mon, 4 Nov 2013 19:52:59 -0500 [thread overview]
Message-ID: <1383612780-6591-1-git-send-email-psusi@ubuntu.com> (raw)
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
next reply other threads:[~2013-11-05 0:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-05 0:52 Phillip Susi [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1383612780-6591-1-git-send-email-psusi@ubuntu.com \
--to=psusi@ubuntu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox