aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>2010-07-10 05:19:19 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:04:33 -0400
commitb966346c344f592c8e6a84c9c274a7dedbc057ad (patch)
treee009d66c3c50997592454a43883458bd823c24c1 /drivers/scsi
parent363863256a711819130ea4ac210ee001bc80c3b2 (diff)
[SCSI] qla4xxx: correct return status in function qla4xxx_fw_ready
Handle fw_state "auto discovery in progress" correctly to avoid marking adapter as offline. Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Signed-off-by: Ravi Anand <ravi.anand@qlogic.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/qla4xxx/ql4_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_init.c b/drivers/scsi/qla4xxx/ql4_init.c
index 16565226f55c..d5254054b2c8 100644
--- a/drivers/scsi/qla4xxx/ql4_init.c
+++ b/drivers/scsi/qla4xxx/ql4_init.c
@@ -399,6 +399,7 @@ static int qla4xxx_fw_ready(struct scsi_qla_host *ha)
399 DEBUG2(printk("scsi%ld: %s: FW initialized, but " 399 DEBUG2(printk("scsi%ld: %s: FW initialized, but "
400 "auto-discovery still in process\n", 400 "auto-discovery still in process\n",
401 ha->host_no, __func__)); 401 ha->host_no, __func__));
402 ready = 1;
402 } 403 }
403 404
404 return ready; 405 return ready;