Skip to content

Commit

Permalink
[PATCH] skge: check for PCI hotplug during IRQ
Browse files Browse the repository at this point in the history
Check if IRQ came from hardware fault (hotplug).

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Sep 11, 2006
1 parent 2a2fc64 commit 0486a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/skge.c
Original file line number Diff line number Diff line change
Expand Up @@ -2884,7 +2884,7 @@ static irqreturn_t skge_intr(int irq, void *dev_id, struct pt_regs *regs)
spin_lock(&hw->hw_lock);
/* Reading this register masks IRQ */
status = skge_read32(hw, B0_SP_ISRC);
if (status == 0)
if (status == 0 || status == ~0)
goto out;

handled = 1;
Expand Down

0 comments on commit 0486a8c

Please sign in to comment.