Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1606751 > unrolled thread

[PATCH 07/23] scsi: hisi_sas: only reset link for PHY_FUNC_LINK_RESET

Started byJohn Garry <john.garry@huawei.com>
First post2017-03-22 18:00 +0100
Last post2017-03-22 18:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 07/23] scsi: hisi_sas: only reset link for PHY_FUNC_LINK_RESET John Garry <john.garry@huawei.com> - 2017-03-22 18:00 +0100

#1606751 — [PATCH 07/23] scsi: hisi_sas: only reset link for PHY_FUNC_LINK_RESET

FromJohn Garry <john.garry@huawei.com>
Date2017-03-22 18:00 +0100
Subject[PATCH 07/23] scsi: hisi_sas: only reset link for PHY_FUNC_LINK_RESET
Message-ID<tnRM6-5ys-19@gated-at.bofh.it>
We currently do a hard reset for a link reset. Change this
to do a link reset only.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Xiang Chen <chenxiang@hisilicon.com>
---
 drivers/scsi/hisi_sas/hisi_sas_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
index 7c1fb75..00068d2 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:
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web