scsi: ufs: Reduce the START STOP UNIT timeout
authorBart Van Assche <bvanassche@acm.org>
Tue, 18 Oct 2022 20:29:54 +0000 (13:29 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 22 Oct 2022 03:25:59 +0000 (03:25 +0000)
commitdcd5b7637c6d442d957f73780a03047413ed3a10
tree9548962e51bb4fcc2404c2a68b8158f2ea42bbc4
parent836d322d73cb08486ecc50787695175a135e62ba
scsi: ufs: Reduce the START STOP UNIT timeout

Reduce the START STOP UNIT command timeout to one second since on Android
devices a kernel panic is triggered if an attempt to suspend the system
takes more than 20 seconds. One second should be enough for the START STOP
UNIT command since this command completes in less than a millisecond for
the UFS devices I have access to.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20221018202958.1902564-7-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c