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:33:05 +0000 (13:33 +0100)
commitfc80b877f1d0554d669395c776af24be968a290e
tree7b775f8636b20e8f0378f3e16a199139563f9b51
parent39761417ea7b654217d6d9085afbf7c87ba3675d
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/ufs/core/ufshcd.c