diff options
author | 2024-03-13 22:50:18 +0000 | |
---|---|---|
committer | 2024-03-15 14:03:45 +0000 | |
commit | f1b85ef15a99f06ed48871ce933d591127d2dcc0 (patch) | |
tree | 2822c546674c83c232f5a702708dfbf68d8bf741 /drivers/net/ethernet/agere | |
parent | net: remove {revc,send}msg_copy_msghdr() from exports (diff) | |
download | linux-f1b85ef15a99f06ed48871ce933d591127d2dcc0.tar.gz linux-f1b85ef15a99f06ed48871ce933d591127d2dcc0.tar.bz2 linux-f1b85ef15a99f06ed48871ce933d591127d2dcc0.zip |
net: mediatek: mtk_eth_soc: clear 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.
Fixes: b8fc9f30821e ("net: ethernet: mediatek: Add basic PHYLINK support")
Suggested-by: Mason-cw Chang <Mason-cw.Chang@mediatek.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/agere')
0 files changed, 0 insertions, 0 deletions