]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: fix SGMII inband autoneg enable
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 7 Jul 2022 09:20:02 +0000 (10:20 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Jul 2022 03:19:19 +0000 (20:19 -0700)
commit5fcd6edde3ca41543ae23712e28f10f14db3e91e
treee9a54ae41457093f0387abe39846002c20ad8d47
parented19ce159488e606561a8cf6740a997e601f820f
net: phylink: fix SGMII inband autoneg enable

When we are operating in SGMII inband mode, it implies that there is a
PHY connected, and the ethtool advertisement for autoneg applies to
the PHY, not the SGMII link. When in 1000base-X mode, then this applies
to the 802.3z link and needs to be applied to the PCS.

Fix this.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/E1o9Ng2-005Qbe-3H@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phylink.c