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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:44 +0000 (13:14 +0100)
commit23f0e9f86303dcf4e7cce11b9c9f736db73d0436
tree44bc25ff5b0508a5466933f827d69b98a9a2dfc6
parent2cf66428a2545bb33beb9624124a2377468bb478
scsi: ufs: Reduce the START STOP UNIT timeout

[ Upstream commit dcd5b7637c6d442d957f73780a03047413ed3a10 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/ufs/ufshcd.c