]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qla2xxx: Dont call nic restart firmware if it is already active and running.
authorSaurav Kashyap <saurav.kashyap@qlogic.com>
Tue, 3 Jul 2012 18:13:58 +0000 (11:13 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 23 Jul 2012 08:02:47 +0000 (01:02 -0700)
JIRA Key: V2632FC-230

drivers/scsi/qla2xxx/qla_init.c

index 7d020d619e935795d78e2326c91b487724b1ec7d..5b22e488df23fcb6944a0c3d0863e61c3c6a5d07 100644 (file)
@@ -431,6 +431,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);
 
@@ -482,6 +483,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: