[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241109001206.213581-3-ahmed.zaki@intel.com>
Date: Fri, 8 Nov 2024 17:12:06 -0700
From: Ahmed Zaki <ahmed.zaki@...el.com>
To: intel-wired-lan@...ts.osuosl.org
Cc: netdev@...r.kernel.org,
Sudheer Mogilappagari <sudheer.mogilappagari@...el.com>,
Ahmed Zaki <ahmed.zaki@...el.com>
Subject: [PATCH iwl-net 2/2] idpf: finish pending IRQ handling before freeing interrupt
From: Sudheer Mogilappagari <sudheer.mogilappagari@...el.com>
Wait for pending IRQs to be handled before an interrupt is free'd up.
Fixes: d4d558718266 ("idpf: initialize interrupts and enable vport")
Reviewed-by: Ahmed Zaki <ahmed.zaki@...el.com>
Signed-off-by: Sudheer Mogilappagari <sudheer.mogilappagari@...el.com>
Signed-off-by: Ahmed Zaki <ahmed.zaki@...el.com>
---
drivers/net/ethernet/intel/idpf/idpf_txrx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/intel/idpf/idpf_txrx.c b/drivers/net/ethernet/intel/idpf/idpf_txrx.c
index 82e0e3698f10..08acdd383b8d 100644
--- a/drivers/net/ethernet/intel/idpf/idpf_txrx.c
+++ b/drivers/net/ethernet/intel/idpf/idpf_txrx.c
@@ -3584,6 +3584,7 @@ static void idpf_vport_intr_rel_irq(struct idpf_vport *vport)
/* clear the affinity_mask in the IRQ descriptor */
irq_set_affinity_notifier(irq_num, NULL);
+ synchronize_irq(irq_num);
kfree(free_irq(irq_num, q_vector));
}
}
--
2.43.0
Powered by blists - more mailing lists