From: Adrian Hunter <adrian.hunter@intel.com>
To: "Martin K . Petersen" <martin.petersen@oracle.com>
Cc: "James E . J . Bottomley" <jejb@linux.ibm.com>,
Bean Huo <huobean@gmail.com>, Avri Altman <avri.altman@wdc.com>,
Alim Akhtar <alim.akhtar@samsung.com>,
Can Guo <cang@codeaurora.org>,
Asutosh Das <asutoshd@codeaurora.org>,
Bart Van Assche <bvanassche@acm.org>,
Kiwoong Kim <kwmad.kim@samsung.com>,
Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>,
Wei Li <liwei213@huawei.com>,
linux-scsi@vger.kernel.org
Subject: [PATCH V6 0/3] scsi: ufs: Let devices remain runtime suspended during system suspend
Date: Thu, 30 Sep 2021 15:42:21 +0300 [thread overview]
Message-ID: <20210930124224.114031-1-adrian.hunter@intel.com> (raw)
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 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 (3):
scsi: ufs: Fix error handler clear ua deadlock
scsi: ufs: Fix runtime PM dependencies getting broken
scsi: ufs: Let devices remain runtime suspended during system suspend
drivers/scsi/scsi_pm.c | 16 ++-
drivers/scsi/ufs/ufs-hisi.c | 8 +-
drivers/scsi/ufs/ufs.h | 3 +-
drivers/scsi/ufs/ufshcd.c | 296 ++++++++++++++++++++++++++++++--------------
drivers/scsi/ufs/ufshcd.h | 24 +++-
include/scsi/scsi_device.h | 1 +
include/trace/events/ufs.h | 5 +-
7 files changed, 251 insertions(+), 102 deletions(-)
Regards
Adrian
next reply other threads:[~2021-09-30 12:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-30 12:42 Adrian Hunter [this message]
2021-09-30 12:42 ` [PATCH V6 1/3] scsi: ufs: Fix error handler clear ua deadlock Adrian Hunter
2021-09-30 22:10 ` Bart Van Assche
2021-10-01 8:15 ` Adrian Hunter
2021-09-30 12:42 ` [PATCH V6 2/3] scsi: ufs: Fix runtime PM dependencies getting broken Adrian Hunter
2021-09-30 12:42 ` [PATCH V6 3/3] scsi: ufs: Let devices remain runtime suspended during system suspend Adrian Hunter
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=20210930124224.114031-1-adrian.hunter@intel.com \
--to=adrian.hunter@intel.com \
--cc=alim.akhtar@samsung.com \
--cc=asutoshd@codeaurora.org \
--cc=avri.altman@wdc.com \
--cc=bvanassche@acm.org \
--cc=cang@codeaurora.org \
--cc=huobean@gmail.com \
--cc=jejb@linux.ibm.com \
--cc=kwmad.kim@samsung.com \
--cc=linux-scsi@vger.kernel.org \
--cc=liwei213@huawei.com \
--cc=manivannan.sadhasivam@linaro.org \
--cc=martin.petersen@oracle.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.