aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Pylypiv <ipylypiv@google.com>2021-11-01 16:28:22 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2021-11-18 22:26:58 -0500
commit744798fcd2b31b806ebf09f86989cbf2806fa9ea (patch)
treef030366d0966396b1727fb13ecad9a9a9187a913
parentscsi: core: Use eh_timeout for START STOP UNIT (diff)
downloadlinux-dev-744798fcd2b31b806ebf09f86989cbf2806fa9ea.tar.xz
linux-dev-744798fcd2b31b806ebf09f86989cbf2806fa9ea.zip
scsi: pm80xx: Apply byte mask for phy ID in mpi_phy_start_resp()
Phy ID is located in the least significant byte of the 4-byte field. mpi_phy_stop_resp() already applies such mask. Link: https://lore.kernel.org/r/20211101232825.2350233-2-ipylypiv@google.com Reviewed-by: Vishakha Channapattan <vishakhavc@google.com> Acked-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Igor Pylypiv <ipylypiv@google.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/pm8001/pm80xx_hwi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c
index b9f6d83ff380..88541ca2a629 100644
--- a/drivers/scsi/pm8001/pm80xx_hwi.c
+++ b/drivers/scsi/pm8001/pm80xx_hwi.c
@@ -3519,7 +3519,7 @@ static int mpi_phy_start_resp(struct pm8001_hba_info *pm8001_ha, void *piomb)
u32 status =
le32_to_cpu(pPayload->status);
u32 phy_id =
- le32_to_cpu(pPayload->phyid);
+ le32_to_cpu(pPayload->phyid) & 0xFF;
struct pm8001_phy *phy = &pm8001_ha->phy[phy_id];
pm8001_dbg(pm8001_ha, INIT,