add 2.6.28 patches and kernel config
[openwrt/openwrt.git] / target / linux / rb532 / patches-2.6.28 / 011-korina_do_schedule_napi_after_testing_it.patch
1 The called netif_rx_schedule() does all the work for us:
2 - it checks the return value of netif_rx_schedule_prep() and
3 - if everything is ok calls __netif_rx_schedule().
4 Before this change, the driver received absolutely nothing.
5
6 Signed-off-by: Phil Sutter <n0-1@freewrt.org>
7 ---
8 --- a/drivers/net/korina.c 2009-01-19 23:26:19.000000000 +0100
9 +++ b/drivers/net/korina.c 2009-01-19 23:27:06.000000000 +0100
10 @@ -330,7 +330,7 @@
11
12 dmas = readl(&lp->rx_dma_regs->dmas);
13 if (dmas & (DMA_STAT_DONE | DMA_STAT_HALT | DMA_STAT_ERR)) {
14 - netif_rx_schedule_prep(dev, &lp->napi);
15 + netif_rx_schedule(dev, &lp->napi);
16
17 dmasm = readl(&lp->rx_dma_regs->dmasm);
18 writel(dmasm | (DMA_STAT_DONE |