diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-09-04 15:16:54 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-05 12:19:54 +0200 |
commit | 6338488356d2891869c9e143381f3bb71cfa2e30 (patch) | |
tree | 7baa4ea088c126cea964a07609b2f3635cf65461 /drivers | |
parent | 9513321069ee56da561a6b1c8f3b5ec07e3c87a5 (diff) | |
download | linux-6338488356d2891869c9e143381f3bb71cfa2e30.tar.bz2 |
net: stmmac: xgmac: Add RBU handling in DMA interrupt
Add the handling of Receive Buffer Unavailable interrupt in the DMA
handler of XGMAC cores.
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c index 64956465c030..e77eb0ddf9b5 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c @@ -322,6 +322,10 @@ static int dwxgmac2_dma_interrupt(void __iomem *ioaddr, /* ABNORMAL interrupts */ if (unlikely(intr_status & XGMAC_AIS)) { + if (unlikely(intr_status & XGMAC_RBU)) { + x->rx_buf_unav_irq++; + ret |= handle_rx; + } if (unlikely(intr_status & XGMAC_TPS)) { x->tx_process_stopped_irq++; ret |= tx_hard_error; |