Skip to content

Commit 022587d

Browse files
ptr324martinkpetersen
authored andcommitted
scsi: ufs: core: Bypass quick recovery if force reset is needed
If force_reset is true, bypass quick recovery. This will shorten error recovery time. Signed-off-by: Peter Wang <peter.wang@mediatek.com> Link: https://lore.kernel.org/r/20240712094506.11284-1-peter.wang@mediatek.com Reviewed-by: Bean Huo <beanhuo@micron.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 0c60eb0 commit 022587d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6561,7 +6561,8 @@ static void ufshcd_err_handler(struct work_struct *work)
65616561
if (ufshcd_err_handling_should_stop(hba))
65626562
goto skip_err_handling;
65636563

6564-
if (hba->dev_quirks & UFS_DEVICE_QUIRK_RECOVERY_FROM_DL_NAC_ERRORS) {
6564+
if ((hba->dev_quirks & UFS_DEVICE_QUIRK_RECOVERY_FROM_DL_NAC_ERRORS) &&
6565+
!hba->force_reset) {
65656566
bool ret;
65666567

65676568
spin_unlock_irqrestore(hba->host->host_lock, flags);

0 commit comments

Comments
 (0)