[SCSI] qla4xxx: correct return status in function qla4xxx_fw_ready
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Sat, 10 Jul 2010 09:19:19 +0000 (14:49 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:04:33 +0000 (12:04 -0500)
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>
drivers/scsi/qla4xxx/ql4_init.c

index 16565226f55cf48beafef8e833488072dc9472d4..d5254054b2c84d5ed17a29282107c3fbc90675da 100644 (file)
@@ -399,6 +399,7 @@ static int qla4xxx_fw_ready(struct scsi_qla_host *ha)
                DEBUG2(printk("scsi%ld: %s: FW initialized, but "
                              "auto-discovery still in process\n",
                               ha->host_no, __func__));
+               ready = 1;
        }
 
        return ready;