ftgmac100: Restart MAC HW once
authorDylan Hung <dylan_hung@aspeedtech.com>
Fri, 12 Mar 2021 00:34:05 +0000 (11:04 +1030)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Mar 2021 12:31:58 +0000 (14:31 +0200)
commitb50c46ef67d602b449bf5fd730a4a64ba2f6016f
tree24f2ba8f087003ac1f4db307bb8542fd7b897e3b
parente64a5a5b8e93a4064da38cde8b25e68750c60d54
ftgmac100: Restart MAC HW once

[ Upstream commit 6897087323a2fde46df32917462750c069668b2f ]

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