]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwxgmac2: Only clear interrupts that are active
authorJose Abreu <jose.abreu@synopsys.com>
Wed, 9 Jan 2019 09:05:57 +0000 (10:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jan 2019 23:35:06 +0000 (15:35 -0800)
commit4464cbacbdd3fb41ebaa84488651f72bd62a7506
treee749f7266eb2a7b59fc977c9f70821b9454a2ed6
parentb735ebcffc02853496fe1924c44a97296e84e426
net: stmmac: dwxgmac2: Only clear interrupts that are active

In DMA interrupt handler we were clearing all interrupts status, even
the ones that were not active. Fix this and only clear the active
interrupts.

Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c