]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SUNGEM]: Fix netpoll bug in Sun GEM Ether driver
authorEric Lemoine <eric.lemoine@gmail.com>
Fri, 2 Sep 2005 00:41:07 +0000 (17:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Sep 2005 00:41:07 +0000 (17:41 -0700)
From: Eric Lemoine <eric.lemoine@gmail.com>

To me the bug is that __LINK_STATE_RX_SCHED can be set while
__netif_rx_schedule() hasen't be called. Why don't fix it in the
simplest way ? See attached patch (absolutely untested).

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sungem.c

index 2608e7a3d214b280d8d1ec12a265612a477bd14a..3f67a42e8503f2f3ee243324023fe41319d63ae4 100644 (file)
@@ -948,6 +948,7 @@ static irqreturn_t gem_interrupt(int irq, void *dev_id, struct pt_regs *regs)
                u32 gem_status = readl(gp->regs + GREG_STAT);
 
                if (gem_status == 0) {
+                       netif_poll_enable(dev);
                        spin_unlock_irqrestore(&gp->lock, flags);
                        return IRQ_NONE;
                }