phba->cfg_xri_rebalancing = 0;
        }
 
-       /* Arm the CQs and then EQs on device */
-       lpfc_sli4_arm_cqeq_intr(phba);
-
-       /* Indicate device interrupt mode */
-       phba->sli4_hba.intr_enable = 1;
-
        /* Allow asynchronous mailbox command to go through */
        spin_lock_irq(&phba->hbalock);
        phba->sli.sli_flag &= ~LPFC_SLI_ASYNC_MBX_BLK;
                phba->trunk_link.link3.state = LPFC_LINK_DOWN;
        spin_unlock_irq(&phba->hbalock);
 
+       /* Arm the CQs and then EQs on device */
+       lpfc_sli4_arm_cqeq_intr(phba);
+
+       /* Indicate device interrupt mode */
+       phba->sli4_hba.intr_enable = 1;
+
        if (!(phba->hba_flag & HBA_FCOE_MODE) &&
            (phba->hba_flag & LINK_DISABLED)) {
                lpfc_printf_log(phba, KERN_ERR, LOG_INIT | LOG_SLI,