projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63d92d3
)
[SCSI] qla2xxx: During loopdown perform Diagnostic loopback.
author
Saurav Kashyap
<saurav.kashyap@qlogic.com>
Tue, 16 Aug 2011 18:31:50 +0000
(11:31 -0700)
committer
James Bottomley
<JBottomley@Parallels.com>
Mon, 29 Aug 2011 07:14:56 +0000
(
00:14
-0700)
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_bsg.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/qla2xxx/qla_bsg.c
b/drivers/scsi/qla2xxx/qla_bsg.c
index
07d1767
..
e5954a4
100644
(file)
--- a/
drivers/scsi/qla2xxx/qla_bsg.c
+++ b/
drivers/scsi/qla2xxx/qla_bsg.c
@@
-704,6
+704,7
@@
qla2x00_process_loopback(struct fc_bsg_job *bsg_job)
elreq.options = bsg_job->request->rqst_data.h_vendor.vendor_cmd[1];
if ((ha->current_topology == ISP_CFG_F ||
+ (atomic_read(&vha->loop_state) == LOOP_DOWN) ||
(IS_QLA81XX(ha) &&
le32_to_cpu(*(uint32_t *)req_data) == ELS_OPCODE_BYTE
&& req_data_len == MAX_ELS_FRAME_PAYLOAD)) &&