From: John Garry Date: Wed, 22 Mar 2017 17:25:23 +0000 (+0800) Subject: scsi: hisi_sas: only reset link for PHY_FUNC_LINK_RESET X-Git-Tag: v4.12-rc1~99^2~134 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b4c67a6ca790ca3b8caa1e6582d61ccd5bd174e5;p=karo-tx-linux.git scsi: hisi_sas: only reset link for PHY_FUNC_LINK_RESET We currently do a hard reset for a link reset. Change this to do a link reset only. Signed-off-by: John Garry Signed-off-by: Xiang Chen Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 7c1fb75d11e6..00068d25ba48 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -659,8 +659,9 @@ static int hisi_sas_control_phy(struct asd_sas_phy *sas_phy, enum phy_func func, break; case PHY_FUNC_LINK_RESET: + hisi_hba->hw->phy_disable(hisi_hba, phy_no); + msleep(100); hisi_hba->hw->phy_enable(hisi_hba, phy_no); - hisi_hba->hw->phy_hard_reset(hisi_hba, phy_no); break; case PHY_FUNC_DISABLE: