Commit 022587d8 authored by Peter Wang's avatar Peter Wang Committed by Martin K. Petersen

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: default avatarPeter Wang <peter.wang@mediatek.com>
Link: https://lore.kernel.org/r/20240712094506.11284-1-peter.wang@mediatek.comReviewed-by: default avatarBean Huo <beanhuo@micron.com>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 0c60eb0c
...@@ -6561,7 +6561,8 @@ static void ufshcd_err_handler(struct work_struct *work) ...@@ -6561,7 +6561,8 @@ static void ufshcd_err_handler(struct work_struct *work)
if (ufshcd_err_handling_should_stop(hba)) if (ufshcd_err_handling_should_stop(hba))
goto skip_err_handling; goto skip_err_handling;
if (hba->dev_quirks & UFS_DEVICE_QUIRK_RECOVERY_FROM_DL_NAC_ERRORS) { if ((hba->dev_quirks & UFS_DEVICE_QUIRK_RECOVERY_FROM_DL_NAC_ERRORS) &&
!hba->force_reset) {
bool ret; bool ret;
spin_unlock_irqrestore(hba->host->host_lock, flags); spin_unlock_irqrestore(hba->host->host_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment