d9e6f33ebedf4b8f22d3240c277d54a2c161483c
[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
9 +++ b/drivers/net/korina.c
10 @@ -330,7 +330,7 @@ static irqreturn_t korina_rx_dma_interru
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 |