Skip to content

Commit

Permalink
sky2: Fix for interrupt handler
Browse files Browse the repository at this point in the history
commit d663d18 upstream.

Re-enable interrupts if it is not our interrupt

Signed-off-by: Mirko Lindner <mlindner@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Mirko Lindner authored and Greg Kroah-Hartman committed Nov 26, 2012
1 parent 6c0e763 commit bb9583e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2929,8 +2929,10 @@ static irqreturn_t sky2_intr(int irq, void *dev_id)

/* Reading this mask interrupts as side effect */
status = sky2_read32(hw, B0_Y2_SP_ISRC2);
if (status == 0 || status == ~0)
if (status == 0 || status == ~0) {
sky2_write32(hw, B0_Y2_SP_ICR, 2);
return IRQ_NONE;
}

prefetch(&hw->st_le[hw->st_idx]);

Expand Down

0 comments on commit bb9583e

Please sign in to comment.