Skip to content

Commit 6897087

Browse files
aspeeddylandavem330
authored andcommitted
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: 10cbd64 ("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>
1 parent 59cd4f1 commit 6897087

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/faraday/ftgmac100.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,7 @@ static int ftgmac100_poll(struct napi_struct *napi, int budget)
13371337
*/
13381338
if (unlikely(priv->need_mac_restart)) {
13391339
ftgmac100_start_hw(priv);
1340+
priv->need_mac_restart = false;
13401341

13411342
/* Re-enable "bad" interrupts */
13421343
iowrite32(FTGMAC100_INT_BAD,

0 commit comments

Comments
 (0)