skge: Unmask interrupts in case of spurious interrupts
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Sun, 30 Nov 2014 11:51:31 +0000 (12:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Dec 2014 05:33:19 +0000 (21:33 -0800)
In case of a spurious interrupt dont forget to reenable the interrupts that
have been masked by reading the interrupt source register.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Acked-by: Mirko Lindner <mlindner@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/skge.c

index 264eab7d3b26e0cb53774ae160ecdbe235be1f7b..7173836fe361962d5c88796ac34c07c9d5ecd166 100644 (file)
@@ -3433,10 +3433,9 @@ static irqreturn_t skge_intr(int irq, void *dev_id)
 
        if (status & IS_HW_ERR)
                skge_error_irq(hw);
-
+out:
        skge_write32(hw, B0_IMSK, hw->intr_mask);
        skge_read32(hw, B0_IMSK);
-out:
        spin_unlock(&hw->hw_lock);
 
        return IRQ_RETVAL(handled);