]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] qla2xxx: Perform ROM mbx cmd access only after ISP soft-reset during f/w recovery.
authorSantosh Vernekar <santosh.vernekar@qlogic.com>
Wed, 22 Aug 2012 18:21:13 +0000 (14:21 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 14 Sep 2012 17:28:50 +0000 (18:28 +0100)
Signed-off-by: Santosh Vernekar <santosh.vernekar@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 4263358710dce84476d077302bb6946037fdeefc..da0413c1e7d79005f9a2ed1fdb30426ddd42ead3 100644 (file)
@@ -4301,17 +4301,17 @@ qla2x00_abort_isp(scsi_qla_host_t *vha)
        struct req_que *req = ha->req_q_map[0];
        unsigned long flags;
 
-       if (IS_QLA8031(ha)) {
-               ql_dbg(ql_dbg_p3p, vha, 0xb05c,
-                   "Clearing fcoe driver presence.\n");
-               if (qla83xx_clear_drv_presence(vha) != QLA_SUCCESS)
-                       ql_dbg(ql_dbg_p3p, vha, 0xb073,
-                           "Erro while clearing DRV-Presence.\n");
-       }
-
        if (vha->flags.online) {
                qla2x00_abort_isp_cleanup(vha);
 
+               if (IS_QLA8031(ha)) {
+                       ql_dbg(ql_dbg_p3p, vha, 0xb05c,
+                           "Clearing fcoe driver presence.\n");
+                       if (qla83xx_clear_drv_presence(vha) != QLA_SUCCESS)
+                               ql_dbg(ql_dbg_p3p, vha, 0xb073,
+                                   "Error while clearing DRV-Presence.\n");
+               }
+
                if (unlikely(pci_channel_offline(ha->pdev) &&
                    ha->flags.pci_channel_io_perm_failure)) {
                        clear_bit(ISP_ABORT_RETRY, &vha->dpc_flags);