]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: core: Replace hard coded vcc-off delay with a variable
authorBao D. Nguyen <quic_nguyenb@quicinc.com>
Mon, 13 Oct 2025 19:38:16 +0000 (12:38 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 22 Oct 2025 01:22:17 +0000 (21:22 -0400)
commit4760b639b43c107c8bfccd658478bbb3152fa56f
tree31b8a08dc0deed9cf411245c5ecd603aa1946e49
parentf8e82ae65eaf347fb8924a1d9c544da7bcb9f798
scsi: ufs: core: Replace hard coded vcc-off delay with a variable

After the UFS device VCC is powered off, all the UFS device
manufacturers require a minimum of 1ms of power-off time before VCC can
be powered on again. This requirement has been verified with all the UFS
device manufacturer's datasheets.

Replace the hard coded 5ms delay with a variable with a default setting
of 2ms to improve the system resume latency. The platform drivers can
override this setting as needed.

Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Link: https://patch.msgid.link/72fa649406a0bf02271575b7d58f22c968aa5d7e.1760383740.git.quic_nguyenb@quicinc.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c
include/ufs/ufshcd.h