return ret;
 }
 
+/**
+ * ice_dis_ctrlq_interrupts - disable control queue interrupts
+ * @hw: pointer to HW structure
+ */
+static void ice_dis_ctrlq_interrupts(struct ice_hw *hw)
+{
+       /* disable Admin queue Interrupt causes */
+       wr32(hw, PFINT_FW_CTL,
+            rd32(hw, PFINT_FW_CTL) & ~PFINT_FW_CTL_CAUSE_ENA_M);
+
+       /* disable Mailbox queue Interrupt causes */
+       wr32(hw, PFINT_MBX_CTL,
+            rd32(hw, PFINT_MBX_CTL) & ~PFINT_MBX_CTL_CAUSE_ENA_M);
+
+       /* disable Control queue Interrupt causes */
+       wr32(hw, PFINT_OICR_CTL,
+            rd32(hw, PFINT_OICR_CTL) & ~PFINT_OICR_CTL_CAUSE_ENA_M);
+
+       ice_flush(hw);
+}
+
 /**
  * ice_free_irq_msix_misc - Unroll misc vector setup
  * @pf: board private structure
  */
 static void ice_free_irq_msix_misc(struct ice_pf *pf)
 {
+       struct ice_hw *hw = &pf->hw;
+
+       ice_dis_ctrlq_interrupts(hw);
+
        /* disable OICR interrupt */
-       wr32(&pf->hw, PFINT_OICR_ENA, 0);
-       ice_flush(&pf->hw);
+       wr32(hw, PFINT_OICR_ENA, 0);
+       ice_flush(hw);
 
        if (test_bit(ICE_FLAG_MSIX_ENA, pf->flags) && pf->msix_entries) {
                synchronize_irq(pf->msix_entries[pf->sw_oicr_idx].vector);
        ice_free_res(pf->hw_irq_tracker, pf->hw_oicr_idx, ICE_RES_MISC_VEC_ID);
 }
 
+/**
+ * ice_ena_ctrlq_interrupts - enable control queue interrupts
+ * @hw: pointer to HW structure
+ * @v_idx: HW vector index to associate the control queue interrupts with
+ */
+static void ice_ena_ctrlq_interrupts(struct ice_hw *hw, u16 v_idx)
+{
+       u32 val;
+
+       val = ((v_idx & PFINT_OICR_CTL_MSIX_INDX_M) |
+              PFINT_OICR_CTL_CAUSE_ENA_M);
+       wr32(hw, PFINT_OICR_CTL, val);
+
+       /* enable Admin queue Interrupt causes */
+       val = ((v_idx & PFINT_FW_CTL_MSIX_INDX_M) |
+              PFINT_FW_CTL_CAUSE_ENA_M);
+       wr32(hw, PFINT_FW_CTL, val);
+
+       /* enable Mailbox queue Interrupt causes */
+       val = ((v_idx & PFINT_MBX_CTL_MSIX_INDX_M) |
+              PFINT_MBX_CTL_CAUSE_ENA_M);
+       wr32(hw, PFINT_MBX_CTL, val);
+
+       ice_flush(hw);
+}
+
 /**
  * ice_req_irq_msix_misc - Setup the misc vector to handle non queue events
  * @pf: board private structure
 {
        struct ice_hw *hw = &pf->hw;
        int oicr_idx, err = 0;
-       u32 val;
 
        if (!pf->int_name[0])
                snprintf(pf->int_name, sizeof(pf->int_name) - 1, "%s-%s:misc",
 skip_req_irq:
        ice_ena_misc_vector(pf);
 
-       val = ((pf->hw_oicr_idx & PFINT_OICR_CTL_MSIX_INDX_M) |
-              PFINT_OICR_CTL_CAUSE_ENA_M);
-       wr32(hw, PFINT_OICR_CTL, val);
-
-       /* This enables Admin queue Interrupt causes */
-       val = ((pf->hw_oicr_idx & PFINT_FW_CTL_MSIX_INDX_M) |
-              PFINT_FW_CTL_CAUSE_ENA_M);
-       wr32(hw, PFINT_FW_CTL, val);
-
-       /* This enables Mailbox queue Interrupt causes */
-       val = ((pf->hw_oicr_idx & PFINT_MBX_CTL_MSIX_INDX_M) |
-              PFINT_MBX_CTL_CAUSE_ENA_M);
-       wr32(hw, PFINT_MBX_CTL, val);
-
+       ice_ena_ctrlq_interrupts(hw, pf->hw_oicr_idx);
        wr32(hw, GLINT_ITR(ICE_RX_ITR, pf->hw_oicr_idx),
             ITR_REG_ALIGN(ICE_ITR_8K) >> ICE_ITR_GRAN_S);