]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: core: Support updating device command timeout
authorPeter Wang <peter.wang@mediatek.com>
Sat, 10 May 2025 08:01:01 +0000 (16:01 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 May 2025 02:38:41 +0000 (22:38 -0400)
commit8f9c9384cde8c5e9af22bef553b89cd991fd38e7
treee4e6c05b4f759bc5156f1718d8246eadda41a137
parent8f6c52b7534ae9c4c0ae2b57f4f45c31ceac4b41
scsi: 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 maximum 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>
drivers/ufs/core/ufshcd.c