|
@@ -5809,7 +5809,8 @@ static int ufshcd_eh_host_reset_handler(struct scsi_cmnd *cmd)
|
|
|
do {
|
|
|
spin_lock_irqsave(hba->host->host_lock, flags);
|
|
|
if (!(work_pending(&hba->eh_work) ||
|
|
|
- hba->ufshcd_state == UFSHCD_STATE_RESET))
|
|
|
+ hba->ufshcd_state == UFSHCD_STATE_RESET ||
|
|
|
+ hba->ufshcd_state == UFSHCD_STATE_EH_SCHEDULED))
|
|
|
break;
|
|
|
spin_unlock_irqrestore(hba->host->host_lock, flags);
|
|
|
dev_dbg(hba->dev, "%s: reset in progress\n", __func__);
|