diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 03df459d0959a499453f55d0bd6ae3575b13e5f2..df1a4558da162b9de60f70a5f5aba01eded5c50c 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -1806,8 +1806,9 @@ static int hisi_sas_debug_I_T_nexus_reset(struct domain_device *device) if (!ret) hisi_sas_phy_down(hisi_hba, sas_phy->id, 0); } else if (sas_dev->dev_status != HISI_SAS_DEV_INIT) - /* Sleep 2s to wait for I_T reset at expander env */ - msleep(2000); + /* Sleep 2s, wait for I_T reset at expander env except fail */ + if (!rc) + msleep(2000); return rc; }