[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1760039554.git.quic_nguyenb@quicinc.com>
Date: Thu, 9 Oct 2025 13:10:57 -0700
From: "Bao D. Nguyen" <quic_nguyenb@...cinc.com>
To: <quic_cang@...cinc.com>, <quic_nitirawa@...cinc.com>, <bvanassche@....org>,
<avri.altman@....com>, <peter.wang@...iatek.com>,
<adrian.hunter@...el.com>, <martin.petersen@...cle.com>
CC: <linux-scsi@...r.kernel.org>, "Bao D. Nguyen" <quic_nguyenb@...cinc.com>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
"open list:ARM/Mediatek SoC
support:Keyword:mediatek" <linux-kernel@...r.kernel.org>,
"moderated
list:ARM/Mediatek SoC support:Keyword:mediatek"
<linux-arm-kernel@...ts.infradead.org>,
"moderated list:ARM/Mediatek SoC
support:Keyword:mediatek" <linux-mediatek@...ts.infradead.org>
Subject: [PATCH v2 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 5ms setting and allow the platform drivers
to override this setting as needed to improve the system resume latency.
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(-)
--
2.7.4
Powered by blists - more mailing lists