]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] qla2xxx: Dont call nic restart firmware if it is already active and running.
authorSaurav Kashyap <saurav.kashyap@qlogic.com>
Wed, 22 Aug 2012 18:21:15 +0000 (14:21 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 17:28:50 +0000 (18:28 +0100)
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_init.c

index da0413c1e7d79005f9a2ed1fdb30426ddd42ead3..470ee5156a07a8bbf2f44be002277357ebd6219b 100644 (file)
@@ -435,6 +435,7 @@ qla83xx_nic_core_fw_load(scsi_qla_host_t *vha)
        int rval = QLA_SUCCESS;
        struct qla_hw_data *ha = vha->hw;
        uint32_t idc_major_ver, idc_minor_ver;
+       uint16_t config[4];
 
        qla83xx_idc_lock(vha, 0);
 
@@ -486,6 +487,13 @@ qla83xx_nic_core_fw_load(scsi_qla_host_t *vha)
        idc_minor_ver |= (QLA83XX_SUPP_IDC_MINOR_VERSION << (ha->portnum * 2));
        qla83xx_wr_reg(vha, QLA83XX_IDC_MINOR_VERSION, idc_minor_ver);
 
+       if (ha->flags.nic_core_reset_owner) {
+               memset(config, 0, sizeof(config));
+               if (!qla81xx_get_port_config(vha, config))
+                       qla83xx_wr_reg(vha, QLA83XX_IDC_DEV_STATE,
+                           QLA8XXX_DEV_READY);
+       }
+
        rval = qla83xx_idc_state_handler(vha);
 
 exit: