提交 355bf2e0 编写于 作者: C Changyuan Lyu 提交者: Martin K. Petersen

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.comReviewed-by: NIgor Pylypiv <ipylypiv@google.com>
Signed-off-by: NChangyuan Lyu <changyuanl@google.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 e78276ca
...@@ -3723,8 +3723,12 @@ static int mpi_phy_stop_resp(struct pm8001_hba_info *pm8001_ha, void *piomb) ...@@ -3723,8 +3723,12 @@ static int mpi_phy_stop_resp(struct pm8001_hba_info *pm8001_ha, void *piomb)
pm8001_dbg(pm8001_ha, MSG, "phy:0x%x status:0x%x\n", pm8001_dbg(pm8001_ha, MSG, "phy:0x%x status:0x%x\n",
phyid, status); phyid, status);
if (status == PHY_STOP_SUCCESS || if (status == PHY_STOP_SUCCESS ||
status == PHY_STOP_ERR_DEVICE_ATTACHED) status == PHY_STOP_ERR_DEVICE_ATTACHED) {
phy->phy_state = PHY_LINK_DISABLE; phy->phy_state = PHY_LINK_DISABLE;
phy->sas_phy.phy->negotiated_linkrate = SAS_PHY_DISABLED;
phy->sas_phy.linkrate = SAS_PHY_DISABLED;
}
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册