From: Armen Baloyan <armen.balo...@qlogic.com>

Signed-off-by: Armen Baloyan <armen.balo...@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kash...@qlogic.com>
---
 drivers/scsi/qla2xxx/qla_def.h |    2 +-
 drivers/scsi/qla2xxx/qla_mr.c  |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 7c69729..4c286eb 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -808,7 +808,7 @@ struct mbx_cmd_32 {
                                           Notification */
 #define MBA_FW_POLL_STATE      0x8600  /* Firmware in poll diagnostic state */
 #define MBA_FW_RESET_FCT       0x8502  /* Firmware reset factory defaults */
-
+#define MBA_FW_INIT_INPROGRESS 0x8500  /* Firmware boot in progress */
 /* 83XX FCoE specific */
 #define MBA_IDC_AEN            0x8200  /* FCoE: NIC Core state change AEN */
 
diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c
index ba6f8b1..6ca4807 100644
--- a/drivers/scsi/qla2xxx/qla_mr.c
+++ b/drivers/scsi/qla2xxx/qla_mr.c
@@ -997,6 +997,9 @@ qlafx00_init_fw_ready(scsi_qla_host_t *vha)
                        break;
 
                default:
+                       if ((aenmbx & 0xFF00) == MBA_FW_INIT_INPROGRESS)
+                               break;
+
                        /* If fw is apparently not ready. In order to continue,
                         * we might need to issue Mbox cmd, but the problem is
                         * that the DoorBell vector values that come with the
-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to