kernel: mtk_eth_soc: release MAC_MCR_FORCE_LINK only when MAC is up
authorDaniel Golle <daniel@makrotopia.org>
Mon, 11 Mar 2024 18:26:55 +0000 (18:26 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 11 Mar 2024 19:14:14 +0000 (19:14 +0000)
commitfaa5f17fe2d45a95049b202c2de0aeeb0c9a64db
tree49c34041c423bbcf15f2585d08c69bdeac42c65c
parent45a2109353fa18701b65aefe2323ec06391da543
kernel: mtk_eth_soc: release MAC_MCR_FORCE_LINK only when MAC is up

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.

Suggested-by: Mason-cw Chang <Mason-cw.Chang@mediatek.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/generic/pending-6.1/735-net-mediatek-mtk_eth_soc-release-MAC_MCR_FORCE_LINK-.patch [new file with mode: 0644]
target/linux/generic/pending-6.1/737-net-ethernet-mtk_eth_soc-add-paths-and-SerDes-modes-.patch