Skip to contentSkip to conversation

ufs: core: bypass quick recovery if need force reset

PATCH Applied [email protected] 4 participants 5 messages Jul 12, 2024 – Jul 23, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ufs: core: bypass quick recovery if need force reset

From: Peter Wang <[email protected]>

If force_reset is true, bypass quick recovery.
This will shorten error recovery time.

---
 drivers/ufs/core/ufshcd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/ufs/core/ufshcd.c +2 -1
index 46433ecf0c4d..357379ddd79a 100644
@@ -6545,7 +6545,8 @@ static void ufshcd_err_handler(struct work_struct *work)
 	if (ufshcd_err_handling_should_stop(hba))
 		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;
 
 		spin_unlock_irqrestore(hba->host->host_lock, flags);
Signature · 1 line
2.18.0
#3 lore raw
In reply to [email protected]
Quoted 3 lines

If force_reset is true, bypass quick recovery. This will shorten error recovery time.

Applied to 6.11/scsi-staging, thanks!

Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering