net: mtk_eth_soc: correct 802.3z duplex setting
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 18 May 2022 14:54:52 +0000 (15:54 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 May 2022 01:14:29 +0000 (18:14 -0700)
commita459187390bb221827f9c07866c3a5ffbdf9622b
tree4e7e9f192d9a0a2488016f3be2ed5edfcabe4bf0
parent7da3f901f8ecb425105fad39a0f5de73306abe52
net: mtk_eth_soc: correct 802.3z duplex setting

Phylink does not guarantee that state->duplex will be set correctly in
the mac_config() call, so it's a bug that the driver makes use of it.

Move the 802.3z PCS duplex configuration to mac_link_up().

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h
drivers/net/ethernet/mediatek/mtk_sgmii.c