Here is a rediff'd version of the patch to fix shared irq handling in pcnet_cs
and generic 8390 drivers.
}
}
spin_unlock(&ei_local->page_lock);
- return IRQ_HANDLED;
+ return IRQ_RETVAL(nr_serviced > 0);
}
/**
{
struct net_device *dev = dev_id;
pcnet_dev_t *info = PRIV(dev);
- info->stale = 0;
- ei_interrupt(irq, dev_id, regs);
- /* FIXME! Was it really ours? */
- return IRQ_HANDLED;
+ irqreturn_t ret = ei_interrupt(irq, dev_id, regs);
+
+ if (ret == IRQ_HANDLED)
+ info->stale = 0;
+ return ret;
}
static void ei_watchdog(u_long arg)