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>
This commit is contained in:
Родитель
adcc796b4f
Коммит
744798fcd2
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче