Commit f57486f6 authored by Peter Wang's avatar Peter Wang Committed by Bart Van Assche
Browse files

FROMGIT: ufs: core: support updating device command timeout



The default device command timeout remains 1.5 seconds,
but platform drivers can override it if needed.

Some UFS device commands may timeout due to being blocked
by regular SCSI write commands. Therefore, the maximun timeout
needs to be extended to 30 seconds, matching the SCSI write
command timeout. And for error injection purposes, set the
minimum value to 1 ms.

Signed-off-by: default avatarPeter Wang <peter.wang@mediatek.com>
Link: https://lore.kernel.org/r/20250510080345.595798-1-peter.wang@mediatek.com


Suggested-by: default avatarBart Van Assche <bvanassche@acm.org>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Bug: 417375113
(cherry picked from commit 8f9c9384 https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git

)
[ Resolved minor conflict in drivers/ufs/core/ufshcd.c ]
Change-Id: Ica464f3691cb8cf3bbe3cd1f424b5cd6d4a31c9a
Signed-off-by: default avatarPeter Wang <peter.wang@mediatek.com>
parent f9fc2b36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment