summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hisi_sas/hisi_sas_main.c
diff options
context:
space:
mode:
authorXiang Chen2017-10-24 17:51:36 +0200
committerMartin K. Petersen2017-10-25 14:21:04 +0200
commit1eb8eeac17ee808b50b422f5ef2e27f5497f82ad (patch)
tree97191c50613b345e622e42aaf8629f9f58247fe7 /drivers/scsi/hisi_sas/hisi_sas_main.c
parentscsi: hisi_sas: fix SATA breakpoint memory size (diff)
downloadkernel-qcow2-linux-1eb8eeac17ee808b50b422f5ef2e27f5497f82ad.tar.gz
kernel-qcow2-linux-1eb8eeac17ee808b50b422f5ef2e27f5497f82ad.tar.xz
kernel-qcow2-linux-1eb8eeac17ee808b50b422f5ef2e27f5497f82ad.zip
scsi: hisi_sas: us start_phy in PHY_FUNC_LINK_RESET
When a PHY_FUNC_LINK_RESET is issued, we need to fill the transport identify_frame to SAS controller before the PHYs are enabled. Without this, we may find that if a PHY which belonged to a wideport before the reset may generate a new port id. Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hisi_sas/hisi_sas_main.c')
-rw-r--r--drivers/scsi/hisi_sas/hisi_sas_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
index f49a131c04e4..88d90dc14adf 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_main.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
@@ -765,7 +765,7 @@ static int hisi_sas_control_phy(struct asd_sas_phy *sas_phy, enum phy_func func,
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_start(hisi_hba, phy_no);
break;
case PHY_FUNC_DISABLE: