mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
UPSTREAM: scsi: ufs: core: Increase fDeviceInit poll frequency
UFS devices are expected to clear fDeviceInit flag in single digit
milliseconds. Current values of 5 to 10 millisecond sleep add to increased
latency during the initialization and resume path. This CL lowers the sleep
range to 500 to 1000 microseconds.
Link: https://lore.kernel.org/r/20220421002429.3136933-1-bvanassche@acm.org
Acked-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Konstantin Vyshetsky <vkon@google.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Bug: 234653003
(cherry picked from commit a4e6496fca)
Change-Id: I0636586d7ce9ab470b7de3749c556592968b37cf
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Bart Van Assche
parent
e17ad49da7
commit
2df89985d1
@@ -4507,7 +4507,7 @@ static int ufshcd_complete_dev_init(struct ufs_hba *hba)
|
||||
QUERY_FLAG_IDN_FDEVICEINIT, 0, &flag_res);
|
||||
if (!flag_res)
|
||||
break;
|
||||
usleep_range(5000, 10000);
|
||||
usleep_range(500, 1000);
|
||||
} while (ktime_before(ktime_get(), timeout));
|
||||
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user