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)
commitfcc509eb10ff4794641e6ad3082118287a750d0a
treee749f7266eb2a7b59fc977c9f70821b9454a2ed6
parent6dea7e1881fd86b80da64e476ac398008daed857
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