Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: phy: realtek: fix in-band capabilities for 2.5G PHYs

It looks like the configuration of in-band AN only affects SGMII, and it
is always disabled for 2500Base-X. Adjust the reported capabilities
accordingly.

This is based on testing using OpenWrt on Zyxel XGS1010-12 rev A1 with
RTL8226-CG, and Zyxel XGS1210-12 rev B1 with RTL8221B-VB-CG. On these
devices, 2500Base-X in-band AN is known to work with some SFP modules
(containing an unknown PHY). However, with the built-in Realtek PHYs,
no auto-negotiation takes place, irrespective of the configuration of
the PHY.

Fixes: 10fbd71fc5f9b ("net: phy: realtek: implement configuring in-band an")
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
Reviewed-by: Daniel Golle <daniel@makrotopia.org>
Link: https://patch.msgid.link/20260113205557.503409-1-jan@3e8.eu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Jan Hoffmann and committed by
Jakub Kicinski
8744b63e 2db009e4

+1
+1
drivers/net/phy/realtek/realtek_main.c
··· 1429 1429 { 1430 1430 switch (interface) { 1431 1431 case PHY_INTERFACE_MODE_2500BASEX: 1432 + return LINK_INBAND_DISABLE; 1432 1433 case PHY_INTERFACE_MODE_SGMII: 1433 1434 return LINK_INBAND_DISABLE | LINK_INBAND_ENABLE; 1434 1435 default: