From: Stephen Hemminger Date: Wed, 6 Sep 2006 18:06:10 +0000 (-0700) Subject: [PATCH] skge: check for PCI hotplug during IRQ X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0486a8c83b0f83c52c4d93accd841e08ccdf04dc;p=linux-beck.git [PATCH] skge: check for PCI hotplug during IRQ Check if IRQ came from hardware fault (hotplug). Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 3f1b72eb3492..fba8b7455d8b 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c @@ -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;