Commit 6dbdda4d authored by Giridhar Malavali's avatar Giridhar Malavali Committed by James Bottomley

[SCSI] qla2xxx: Pass first 64 bytes of MBX information when vendor commands fail.

Signed-off-by: default avatarGiridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent c9afb9a2
...@@ -3825,8 +3825,6 @@ qla2x00_loopback_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq, ...@@ -3825,8 +3825,6 @@ qla2x00_loopback_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq,
/* Copy mailbox information */ /* Copy mailbox information */
memcpy( mresp, mcp->mb, 64); memcpy( mresp, mcp->mb, 64);
mresp[3] = mcp->mb[18];
mresp[4] = mcp->mb[19];
return rval; return rval;
} }
...@@ -3887,9 +3885,10 @@ qla2x00_echo_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq, ...@@ -3887,9 +3885,10 @@ qla2x00_echo_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq,
} }
/* Copy mailbox information */ /* Copy mailbox information */
memcpy( mresp, mcp->mb, 32); memcpy(mresp, mcp->mb, 64);
return rval; return rval;
} }
int int
qla84xx_reset_chip(scsi_qla_host_t *ha, uint16_t enable_diagnostic) qla84xx_reset_chip(scsi_qla_host_t *ha, uint16_t enable_diagnostic)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment