提交 c69f67b4 编写于 作者: J Jiaxing Luo 提交者: Xie XiuQi

scsi: hisi_sas: no delay after issue phy reset if sas_smp_phy_control() fail

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

At expander ENV, we delay after issue phy reset to wait for hardware to
handle phy reset. But if sas_smp_phy_control() fail, delay is unnecessary
because we will continue controller reset.

So we do not delay if sas_smp_phy_control() return error.

Feature or Bugfix: Bugfix
Signed-off-by: NJiaxing Luo <luojiaxing@huawei.com>
Signed-off-by: NJohn Garry <john.garry@huawei.com>
Signed-off-by: Nluojiaxing <luojiaxing@huawei.com>
Reviewed-by: Nchenxiang <chenxiang66@hisilicon.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 19baf087
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册