[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <527856B6.8030901@intel.com>
Date: Tue, 05 Nov 2013 10:23:50 +0800
From: Aaron Lu <aaron.lu@...el.com>
To: Phillip Susi <psusi@...ntu.com>, linux-scsi@...r.kernel.org
CC: linux-kernel@...r.kernel.org,
"linux-ide@...r.kernel.org" <linux-ide@...r.kernel.org>,
Tejun Heo <tj@...nel.org>, Robert Hancock <hancockr@...w.ca>
Subject: Re: [PATCH 1/2] libata: use sleep instead of standby command
+linux-ide
On 11/05/2013 08:52 AM, Phillip Susi wrote:
> The ATA SLEEP mode saves some more power than SUSPEND, and
> has basically the same recovery time, so use it instead.
I suppose this is mainly for runtime PM? Since for system
suspend/hibernation, the disk and its controller will be powered off
anyway.
Best regards,
Aaron
>
> Signed-off-by: Phillip Susi <psusi@...ntu.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;
> }
>
> /*
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists