Skip to content

Commit

Permalink
skge: Unmask interrupts in case of spurious interrupts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lino Sanfilippo authored and David S. Miller committed Dec 6, 2014
1 parent 8961b19 commit 6276288
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/marvell/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6276288

Please sign in to comment.