mbox series

[V8,0/1] scsi: ufs: Let devices remain runtime suspended during system suspend

Message ID 20211027130614.406985-1-adrian.hunter@intel.com (mailing list archive)
Headers show
Series scsi: ufs: Let devices remain runtime suspended during system suspend | expand

Message

Adrian Hunter Oct. 27, 2021, 1:06 p.m. UTC
Hi

UFS devices can remain runtime suspended at system suspend time,
if the conditions are right.  Add support for that, first fixing
the impediments.


Changes in V8:

      scsi: ufs: Fix runtime PM dependencies getting broken
	Dropped because superseded by "scsi: core: pm: Only runtime resume
	if necessary"

      scsi: ufs: Let devices remain runtime suspended during system suspend
	Updated commit message
	Re-based

Changes in V7:

      scsi: ufs: Fix error handler clear ua deadlock
	Dropped because superseded by "scsi: ufs: core: Stop clearing
	UNIT ATTENTIONS"

      scsi: ufs: Let devices remain runtime suspended during system suspend
	Re-based

Changes in V6:

      scsi: ufs: Fix error handler clear ua deadlock
	Ensure data byte count bits 1:0 are 11b
	Use ufshcd_compose_dev_cmd() to set up command

Changes in V5:

      scsi: ufs: Fix error handler clear ua deadlock
	Update commit message
	Try to abort REQUEST SENSE if it times out

Changes in V4:

      scsi: ufs: Fix error handler clear ua deadlock

	Do request-sense directly

Changes in V3:

      scsi: ufs: Fix error handler clear ua deadlock

	Correct commit message.
	Amend stable tags to add dependent cherry picks

Changes in V2:

    scsi: ufs: Let devices remain runtime suspended during system suspend

	The ufs-hisi driver uses different RPM and SPM, but it is made
	explicit by a new parameter to suspend prepare.


Adrian Hunter (1):
      scsi: ufs: Let devices remain runtime suspended during system suspend

 drivers/scsi/ufs/ufs-hisi.c |  8 +++++++-
 drivers/scsi/ufs/ufshcd.c   | 45 ++++++++++++++++++++++++++++++++++++++++-----
 drivers/scsi/ufs/ufshcd.h   | 11 +++++++++++
 3 files changed, 58 insertions(+), 6 deletions(-)


Regards
Adrian

Comments

Martin K. Petersen Dec. 3, 2021, 3:03 a.m. UTC | #1
On Wed, 27 Oct 2021 16:06:13 +0300, Adrian Hunter wrote:

> UFS devices can remain runtime suspended at system suspend time,
> if the conditions are right.  Add support for that, first fixing
> the impediments.
> 
> 
> Changes in V8:
> 
> [...]

Applied to 5.17/scsi-queue, thanks!

[1/1] scsi: ufs: Let devices remain runtime suspended during system suspend
      https://git.kernel.org/mkp/scsi/c/ddba1cf7a506