[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1604540566.13152.16.camel@mtkswgap22>
Date: Thu, 5 Nov 2020 09:42:46 +0800
From: Stanley Chu <stanley.chu@...iatek.com>
To: Adrian Hunter <adrian.hunter@...el.com>
CC: "Martin K . Petersen" <martin.petersen@...cle.com>,
"James E . J . Bottomley" <jejb@...ux.ibm.com>,
<linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Alim Akhtar <alim.akhtar@...sung.com>,
"Avri Altman" <avri.altman@....com>, Bean Huo <huobean@...il.com>,
Can Guo <cang@...eaurora.org>
Subject: Re: [PATCH V4 1/2] scsi: ufs: Add DeepSleep feature
On Tue, 2020-11-03 at 16:14 +0200, Adrian Hunter wrote:
> DeepSleep is a UFS v3.1 feature that achieves the lowest power consumption
> of the device, apart from power off.
>
> In DeepSleep mode, no commands are accepted, and the only way to exit is
> using a hardware reset or power cycle.
>
> This patch assumes that if a power cycle was an option, then power off
> would be preferable, so only exit via a hardware reset is supported.
>
> Drivers that wish to support DeepSleep need to set a new capability flag
> UFSHCD_CAP_DEEPSLEEP and provide a hardware reset via the existing
> ->device_reset() callback.
>
> It is assumed that UFS devices with wspecversion >= 0x310 support
> DeepSleep.
>
> Signed-off-by: Adrian Hunter <adrian.hunter@...el.com>
Reviewed-by: Stanley Chu <stanley.chu@...iatek.com>
Powered by blists - more mailing lists