linux-stable/drivers/net/pcs
Vladimir Oltean fdc5c8fb57 net: pcs: xpcs: fix C73 AN not getting enabled
[ Upstream commit c46e78ba9a ]

The XPCS expects clause 73 (copper backplane) autoneg to follow the
ethtool autoneg bit. It actually did that until the blamed
commit inaptly replaced state->an_enabled (coming from ethtool) with
phylink_autoneg_inband() (coming from the device tree or struct
phylink_config), as part of an unrelated phylink_pcs API conversion.

Russell King suggests that state->an_enabled from the original code was
just a proxy for the ethtool Autoneg bit, and that the correct way of
restoring the functionality is to check for this bit in the advertising
mask.

Fixes: 11059740e6 ("net: pcs: xpcs: convert to phylink_pcs_ops")
Link: https://lore.kernel.org/netdev/ZGNt2MFeRolKGFck@shell.armlinux.org.uk/
Suggested-by: Russell King (Oracle) <linux@armlinux.org.uk>
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:32:47 +01:00
..
Kconfig net: pcs: add new PCS driver for altera TSE PCS 2022-09-05 10:16:53 +01:00
Makefile net: pcs: add new PCS driver for altera TSE PCS 2022-09-05 10:16:53 +01:00
pcs-altera-tse.c net: pcs: add new PCS driver for altera TSE PCS 2022-09-05 10:16:53 +01:00
pcs-lynx.c net: pcs: lynx: consolidate sgmii and 1000base-x config code 2022-06-24 11:27:24 -07:00
pcs-rzn1-miic.c net: pcs: rzn1-miic: update speed only if interface is changed 2022-07-01 19:16:00 -07:00
pcs-xpcs-nxp.c net: update NXP copyright text 2021-09-17 13:52:17 +01:00
pcs-xpcs.c net: pcs: xpcs: fix C73 AN not getting enabled 2023-05-24 17:32:47 +01:00
pcs-xpcs.h net: pcs: xpcs: add CL37 1000BASE-X AN support 2022-06-17 10:55:35 +01:00