Skip to content

Commit 355bf2e

Browse files
Lencerfmartinkpetersen
authored andcommitted
scsi: pm80xx: Set stopped phy's linkrate to Disabled
Negotiated link rate needs to be updated to 'Disabled' when phy is stopped. Link: https://lore.kernel.org/r/20220708205026.969161-1-changyuanl@google.com Reviewed-by: Igor Pylypiv <ipylypiv@google.com> Signed-off-by: Changyuan Lyu <changyuanl@google.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent e78276c commit 355bf2e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/scsi/pm8001/pm80xx_hwi.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3723,8 +3723,12 @@ static int mpi_phy_stop_resp(struct pm8001_hba_info *pm8001_ha, void *piomb)
37233723
pm8001_dbg(pm8001_ha, MSG, "phy:0x%x status:0x%x\n",
37243724
phyid, status);
37253725
if (status == PHY_STOP_SUCCESS ||
3726-
status == PHY_STOP_ERR_DEVICE_ATTACHED)
3726+
status == PHY_STOP_ERR_DEVICE_ATTACHED) {
37273727
phy->phy_state = PHY_LINK_DISABLE;
3728+
phy->sas_phy.phy->negotiated_linkrate = SAS_PHY_DISABLED;
3729+
phy->sas_phy.linkrate = SAS_PHY_DISABLED;
3730+
}
3731+
37283732
return 0;
37293733
}
37303734

0 commit comments

Comments
 (0)