scsi: ufs: Try harder to change the power mode
authorBart Van Assche <bvanassche@acm.org>
Tue, 18 Oct 2022 20:29:55 +0000 (13:29 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 22 Oct 2022 03:25:59 +0000 (03:25 +0000)
commit579a4e9dbd53978cad8df88dc612837cdd210ce0
tree2e61b9b06a3550c94563f29fe46a143af4f24c23
parentdcd5b7637c6d442d957f73780a03047413ed3a10
scsi: ufs: Try harder to change the power mode

Instead of only retrying the START STOP UNIT command if a unit attention is
reported, repeat it if any SCSI error is reported by the device or if the
command timed out.

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