Skip to content

*** Remove UFS_DEVICE_QUIRK_DELAY_AFTER_LPM quirk ***

Bao D. Nguyen linux-arm-kernel linux-arm-msm linux-mediatek linux-scsi lkml 3 versions – Applied

Status from this message: Applied to 6.19/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 14 repliesSuperseded

Changes in v3 from the cover letter

- Rename sleep_post_vcc_off to vcc_off_delay_us and change the default setting for this variable from 5ms to 2ms (Peter's comment).

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2scsi: ufs: core: Remove UFS_DEVICE_QUIRK_DELAY_AFTER_LPM quirkdrivers/ufs/core/ufshcd.c drivers/ufs/host/ufs-mediatek.c drivers/ufs/host/ufs-qcom.c +1 more+6 -200 replies
2/2scsi: ufs: core: Replace hard coded vcc-off delay with a variabledrivers/ufs/core/ufshcd.c include/ufs/ufshcd.h+11 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPeter WangBart Van Assche
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] *** Remove UFS_DEVICE_QUIRK_DELAY_AFTER_LPM quirk ***

Multiple ufs device manufacturers request support for the UFS_DEVICE_QUIRK_DELAY_AFTER_LPM quirk in the Qualcomm's platform driver. After checking further with the major UFS manufacturers engineering teams such as Samsung, Kioxia, SK Hynix and Micron, all the manufacturers require this quirk. Since the quirk is needed by all the ufs device manufacturers, remove the quirk in the ufs core driver and implement a universal delay for all the ufs devices.

In addition to verifying with the public device's datasheets, the ufs device manufacturer's engineering teams confirmed the required vcc power-off time for the devices is a minimum of 1ms before vcc can be powered on again. The existing 5ms delay implemented in the ufs core driver seems too conservative, so replace the hard coded 5ms delay with a variable default to 2ms setting to improve the system resume latency. The platform drivers can override this setting as needed.

v2 -> v3:
- Rename sleep_post_vcc_off to vcc_off_delay_us and change the default setting for this variable from 5ms to 2ms (Peter's comment).

v1 -> v2:
- Added a check for vcc's always_on to skip the delay if the vcc
is an always-on regulator (Peter's comment)
- Added a sleep_post_vcc_off variable to allow platform drivers to override the default core driver's setting as needed (Bart and Peter's comments)

Bao D. Nguyen (2):
scsi: ufs: core: Remove UFS_DEVICE_QUIRK_DELAY_AFTER_LPM quirk
scsi: ufs: core: Replace hard coded vcc-off delay with a variable

 drivers/ufs/core/ufshcd.c       | 15 +++++++++++----
 drivers/ufs/host/ufs-mediatek.c | 11 ++++-------
 drivers/ufs/host/ufs-qcom.c     |  3 ---
 include/ufs/ufs_quirks.h        |  7 -------
 include/ufs/ufshcd.h            |  2 ++
 5 files changed, 17 insertions(+), 21 deletions(-)
Signature · 1 line
2.7.4