ftgmac100: Restart MAC HW once
Subsystems (2)
PATCH 1/1 ftgmac100: Restart MAC HW once
From: Dylan Hung <[email protected]>
The interrupt handler may set the flag to reset the mac in the future, but that flag is not cleared once the reset has occurred.
Fixes 10cbd6407609 ("ftgmac100: Rework NAPI & interrupts handling")
Signed-off-by Dylan Hung <[email protected]>
Reviewed-by Joel Stanley <[email protected]>
Signed-off-by Joel Stanley <[email protected]>
--- drivers/net/ethernet/faraday/ftgmac100.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/faraday/ftgmac100.c +1 -0
@@ -1337,6 +1337,7 @@ static int ftgmac100_poll(struct napi_struct *napi, int budget)*/ if (unlikely (priv->need_mac_restart)) {ftgmac100_start_hw (priv); + priv->need_mac_restart = false;/* Re-enable "bad" interrupts */ iowrite32(FTGMAC100_INT_BAD,
Signature · 1 line
2.30.1