Files
openwrt-mirror/target/linux
Daniel Golle 5652b98952 kernel: net: phy: realtek: replace hack with proper fix
RealTek's 2.5G PHYs suffer from an up to now inexplicable problem which
results in the SerDes mode not being properly setup and disabling
in-band AN leading to a timeout waiting for a busy-bit to clear. Up to
now there has been a crude work-around: resetting the PHY and trying
another time.

The cause has now been found as a wrong access to register PHYCR1 on
MDIO_MMD_VEND1 instead of MDIO_MMD_VEND2 when setting up ALDPS as well
as disabling the MDIO broadcast address 0.

In order to access MDIO_MMD_VEND2 on Clause-22-only busses a custom
.read_mmd and .write_mmd ops are implemented, mapping MDIO_MMD_VEND2 to
paged access as this is required.

Also, as ALDPS by design disables the SerDes PCS of the PHY in case the
link has been down for a while, move enabling ALDPS to the end of the
config_init function to not face problems when configuring the interface
mode and in-band AN.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-01-07 01:30:26 +00:00
..
2025-12-02 23:32:42 +01:00
2026-01-04 16:41:28 +01:00
2025-12-17 00:27:21 +01:00
2025-11-22 10:11:52 +01:00
2025-07-20 23:37:37 +02:00
2025-05-24 16:15:53 +02:00
2025-11-22 10:16:35 +01:00
2025-12-17 00:27:21 +01:00
2025-11-26 17:21:14 +02:00
2025-12-31 17:55:44 +01:00
2025-12-31 17:55:44 +01:00
2025-10-22 14:56:15 +02:00
2025-06-12 12:42:15 +02:00
2025-12-02 22:51:19 +01:00
2025-11-25 17:27:24 +01:00