Commit ab490ef9 authored by Federico Vaga's avatar Federico Vaga

kernel: disable IRQs on driver removal

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent f9fc972d
......@@ -430,6 +430,13 @@ int fa_free_irqs(struct fa_dev *fa)
{
struct fmc_device *fmc = fa->fmc;
/*
* When we unload the driver the FPGA is still running so it may
* rises interrupts. Disable IRQs in order to prevent spurious
* interrupt when the driver is not there to handle them.
*/
fa_disable_irqs(fa);
/* Release carrier IRQs (if any) */
if (fa->carrier_op->free_irqs)
fa->carrier_op->free_irqs(fa);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment