diff options
author | Giridhar Malavali <giridhar.malavali@qlogic.com> | 2010-09-03 18:20:49 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-09-05 14:33:03 -0400 |
commit | 6dbdda4d596f201b8a82a276a0c0b50ef2b899e8 (patch) | |
tree | 26894163ed23f0b4f8f9fa21b754c8c4a4542b92 /drivers/scsi/qla2xxx | |
parent | c9afb9a24db2e673971e790ee4c1bac55708f333 (diff) |
[SCSI] qla2xxx: Pass first 64 bytes of MBX information when vendor commands fail.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_mbx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 6009b0c69488..d0413d56887c 100644 --- a/drivers/scsi/qla2xxx/qla_mbx.c +++ b/drivers/scsi/qla2xxx/qla_mbx.c | |||
@@ -3825,8 +3825,6 @@ qla2x00_loopback_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq, | |||
3825 | 3825 | ||
3826 | /* Copy mailbox information */ | 3826 | /* Copy mailbox information */ |
3827 | memcpy( mresp, mcp->mb, 64); | 3827 | memcpy( mresp, mcp->mb, 64); |
3828 | mresp[3] = mcp->mb[18]; | ||
3829 | mresp[4] = mcp->mb[19]; | ||
3830 | return rval; | 3828 | return rval; |
3831 | } | 3829 | } |
3832 | 3830 | ||
@@ -3887,9 +3885,10 @@ qla2x00_echo_test(scsi_qla_host_t *vha, struct msg_echo_lb *mreq, | |||
3887 | } | 3885 | } |
3888 | 3886 | ||
3889 | /* Copy mailbox information */ | 3887 | /* Copy mailbox information */ |
3890 | memcpy( mresp, mcp->mb, 32); | 3888 | memcpy(mresp, mcp->mb, 64); |
3891 | return rval; | 3889 | return rval; |
3892 | } | 3890 | } |
3891 | |||
3893 | int | 3892 | int |
3894 | qla84xx_reset_chip(scsi_qla_host_t *ha, uint16_t enable_diagnostic) | 3893 | qla84xx_reset_chip(scsi_qla_host_t *ha, uint16_t enable_diagnostic) |
3895 | { | 3894 | { |