提交 6dbdda4d 编写于 作者: G Giridhar Malavali 提交者: James Bottomley

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

Signed-off-by: NGiridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册