]> 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)
commit31de28a6031b607b491c09b192598b3303550f14
treee749f7266eb2a7b59fc977c9f70821b9454a2ed6
parent644f618d058e3d98d7971e9a4192398283c8294d
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