]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:08:54 +0000 (10:08 +0100)
commitfcfdb4022c820da819738e1222657b351ace5c3f
tree4fe2f634dcba45b23685529ba2a83ad32fa14ac1
parent4ef0d67c281f3b1e41c6814a78663a4b1a76c73d
net: stmmac: dwxgmac2: Only clear interrupts that are active

[ Upstream commit fcc509eb10ff4794641e6ad3082118287a750d0a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c