Skip to content

Commit

Permalink
[SCSI] qla2xxx: Pass first 64 bytes of MBX information when vendor co…
Browse files Browse the repository at this point in the history
…mmands fail.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Giridhar Malavali authored and James Bottomley committed Sep 5, 2010
1 parent c9afb9a commit 6dbdda4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/scsi/qla2xxx/qla_mbx.c
Original file line number Diff line number Diff line change
Expand Up @@ -3825,8 +3825,6 @@ qla2x00_loopback_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq,

/* Copy mailbox information */
memcpy( mresp, mcp->mb, 64);
mresp[3] = mcp->mb[18];
mresp[4] = mcp->mb[19];
return rval;
}

Expand Down Expand Up @@ -3887,9 +3885,10 @@ qla2x00_echo_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq,
}

/* Copy mailbox information */
memcpy( mresp, mcp->mb, 32);
memcpy(mresp, mcp->mb, 64);
return rval;
}

int
qla84xx_reset_chip(scsi_qla_host_t *ha, uint16_t enable_diagnostic)
{
Expand Down

0 comments on commit 6dbdda4

Please sign in to comment.