net: stmmac: xgmac: fix handling of DPP safety error for DMA channels
authorFurong Xu <0x1207@gmail.com>
Wed, 31 Jan 2024 02:08:28 +0000 (10:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Feb 2024 09:53:33 +0000 (09:53 +0000)
commit46eba193d04f8bd717e525eb4110f3c46c12aec3
treee17c2220cdf1152e07f94155fa8e65e49796f1a0
parent41b9fb381a486360b2daaec0c7480f8e3ff72bc7
net: stmmac: xgmac: fix handling of DPP safety error for DMA channels

Commit 56e58d6c8a56 ("net: stmmac: Implement Safety Features in
XGMAC core") checks and reports safety errors, but leaves the
Data Path Parity Errors for each channel in DMA unhandled at all, lead to
a storm of interrupt.
Fix it by checking and clearing the DMA_DPP_Interrupt_Status register.

Fixes: 56e58d6c8a56 ("net: stmmac: Implement Safety Features in XGMAC core")
Signed-off-by: Furong Xu <0x1207@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/common.h
drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c