Skip to content
Commit 6b62bad2 authored by Daniel Golle's avatar Daniel Golle Committed by Sasha Levin
Browse files

net: mediatek: mtk_eth_soc: clear MAC_MCR_FORCE_LINK only when MAC is up



[ Upstream commit f1b85ef1 ]

Clearing bit MAC_MCR_FORCE_LINK which forces the link down too early
can result in MAC ending up in a broken/blocked state.

Fix this by handling this bit in the .mac_link_up and .mac_link_down
calls instead of in .mac_finish.

Fixes: b8fc9f30 ("net: ethernet: mediatek: Add basic PHYLINK support")
Suggested-by: default avatarMason-cw Chang <Mason-cw.Chang@mediatek.com>
Signed-off-by: default avatarDaniel Golle <daniel@makrotopia.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 149afee5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment