diff options
author | Dylan Hung <dylan_hung@aspeedtech.com> | 2021-03-12 01:34:05 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-13 01:54:07 +0100 |
commit | 6897087323a2fde46df32917462750c069668b2f (patch) | |
tree | 407f117c39a2e91e33dc21255ed9870763b19348 /drivers/net/ethernet/faraday | |
parent | net: axienet: Fix probe error cleanup (diff) | |
download | linux-6897087323a2fde46df32917462750c069668b2f.tar.xz linux-6897087323a2fde46df32917462750c069668b2f.zip |
ftgmac100: Restart MAC HW once
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 <dylan_hung@aspeedtech.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/faraday')
-rw-r--r-- | drivers/net/ethernet/faraday/ftgmac100.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c index 88bfe2107938..04421aec2dfd 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.c +++ b/drivers/net/ethernet/faraday/ftgmac100.c @@ -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, |