diff options
author | Deepak Ukey <deepak.ukey@microchip.com> | 2018-09-11 04:48:02 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-09-11 21:13:08 -0400 |
commit | cd135754d837bc4b15a9211d30bfc23f2247afb9 (patch) | |
tree | 9443a9c827b0e13c9d79d0730927ab78f1c74305 /drivers/scsi/pm8001/pm8001_init.c | |
parent | 0b1b1d88614fcd90c65d27dbd14490dcbf2c9b5f (diff) |
scsi: pm80xx: Fix for phy enable/disable functionality
Added proper mask for phy id in mpi_phy_stop_resp().
Signed-off-by: Deepak Ukey <deepak.ukey@microchip.com>
Signed-off-by: Viswas G <Viswas.G@microchip.com>
Acked-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_init.c')
-rw-r--r-- | drivers/scsi/pm8001/pm8001_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 7a697ca68501..501830caba21 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c | |||
@@ -121,7 +121,7 @@ static void pm8001_phy_init(struct pm8001_hba_info *pm8001_ha, int phy_id) | |||
121 | { | 121 | { |
122 | struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; | 122 | struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; |
123 | struct asd_sas_phy *sas_phy = &phy->sas_phy; | 123 | struct asd_sas_phy *sas_phy = &phy->sas_phy; |
124 | phy->phy_state = 0; | 124 | phy->phy_state = PHY_LINK_DISABLE; |
125 | phy->pm8001_ha = pm8001_ha; | 125 | phy->pm8001_ha = pm8001_ha; |
126 | sas_phy->enabled = (phy_id < pm8001_ha->chip->n_phy) ? 1 : 0; | 126 | sas_phy->enabled = (phy_id < pm8001_ha->chip->n_phy) ? 1 : 0; |
127 | sas_phy->class = SAS; | 127 | sas_phy->class = SAS; |
@@ -1067,6 +1067,7 @@ static int pm8001_pci_probe(struct pci_dev *pdev, | |||
1067 | if (rc) | 1067 | if (rc) |
1068 | goto err_out_shost; | 1068 | goto err_out_shost; |
1069 | scsi_scan_host(pm8001_ha->shost); | 1069 | scsi_scan_host(pm8001_ha->shost); |
1070 | pm8001_ha->flags = PM8001F_RUN_TIME; | ||
1070 | return 0; | 1071 | return 0; |
1071 | 1072 | ||
1072 | err_out_shost: | 1073 | err_out_shost: |