scsi: ufs: core: Use link recovery when h8 exit fails during runtime resume
authorSeunghui Lee <sh043.lee@samsung.com>
Thu, 17 Jul 2025 08:12:13 +0000 (17:12 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Jul 2025 01:38:56 +0000 (21:38 -0400)
commit35dabf4503b94a697bababe94678a8bc989c3223
tree36a20bcbcf981280441b9690d1d1fa5af317a64d
parent7bdc68921481c19cd8c85ddf805a834211c19e61
scsi: ufs: core: Use link recovery when h8 exit fails during runtime resume

If the h8 exit fails during runtime resume process, the runtime thread
enters runtime suspend immediately and the error handler operates at the
same time.  It becomes stuck and cannot be recovered through the error
handler.  To fix this, use link recovery instead of the error handler.

Fixes: 4db7a2360597 ("scsi: ufs: Fix concurrency of error handler and other error recovery paths")
Signed-off-by: Seunghui Lee <sh043.lee@samsung.com>
Link: https://lore.kernel.org/r/20250717081213.6811-1-sh043.lee@samsung.com
Reviewed-by: Bean Huo <beanhuo@micron.com>
Acked-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c