OSDN Git Service

net: mtk_eth_soc: add out of band forcing of speed and duplex in pcs_link_up
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 27 Oct 2022 13:11:03 +0000 (14:11 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Oct 2022 04:48:31 +0000 (21:48 -0700)
commit12198c3a410fe69843e335c1bbf6d4c2a4d48e4e
treef2933c67ce66478ed9a478f94b9cdf9f81d8b201
parent0d2351dc2768061689abd4de1529fa206bbd574e
net: mtk_eth_soc: add out of band forcing of speed and duplex in pcs_link_up

Add support for forcing the link speed and duplex setting in the
pcs_link_up() method for out of band modes, which will be useful when
we finish converting the pcs_config() method. Until then, we still have
to force duplex for 802.3z modes to work correctly.

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