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:Peter Wang <peter.wang@mediatek.com> Link: https://lore.kernel.org/r/20250510080345.595798-1-peter.wang@mediatek.com Suggested-by:
Bart Van Assche <bvanassche@acm.org> Reviewed-by:
Bart Van Assche <bvanassche@acm.org> Signed-off-by:
Martin 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:
Peter Wang <peter.wang@mediatek.com>
Loading
Please sign in to comment