mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
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>
This commit is contained in:
parent
9513321069
commit
6338488356
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue