Skip to content

Commit b1cf0d2

Browse files
Ewan D. Milnegregkh
authored andcommitted
scsi: qla2xxx: Fix mailbox direction flags in qla2xxx_get_adapter_id()
commit 3920068 upstream. The SCM changes set the flags in mcp->out_mb instead of mcp->in_mb so the data was not actually being read into the mcp->mb[] array from the adapter. Link: https://lore.kernel.org/r/20211108183012.13895-1-emilne@redhat.com Fixes: 9f2475f ("scsi: qla2xxx: SAN congestion management implementation") Cc: stable@vger.kernel.org Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Reviewed-by: Arun Easi <aeasi@marvell.com> Signed-off-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 08fd6df commit b1cf0d2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎drivers/scsi/qla2xxx/qla_mbx.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,10 +1650,8 @@ qla2x00_get_adapter_id(scsi_qla_host_t *vha, uint16_t *id, uint8_t *al_pa,
16501650
mcp->in_mb |= MBX_13|MBX_12|MBX_11|MBX_10;
16511651
if (IS_FWI2_CAPABLE(vha->hw))
16521652
mcp->in_mb |= MBX_19|MBX_18|MBX_17|MBX_16;
1653-
if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw)) {
1654-
mcp->in_mb |= MBX_15;
1655-
mcp->out_mb |= MBX_7|MBX_21|MBX_22|MBX_23;
1656-
}
1653+
if (IS_QLA27XX(vha->hw) || IS_QLA28XX(vha->hw))
1654+
mcp->in_mb |= MBX_15|MBX_21|MBX_22|MBX_23;
16571655

16581656
mcp->tov = MBX_TOV_SECONDS;
16591657
mcp->flags = 0;

0 commit comments

Comments
 (0)