]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: mdio: apply phy polling config for RTL931x
authorJonas Jelonek <jelonek.jonas@gmail.com>
Sun, 11 Jan 2026 10:59:54 +0000 (10:59 +0000)
committerRobert Marko <robert.marko@sartura.hr>
Sun, 25 Jan 2026 11:12:15 +0000 (12:12 +0100)
commit4fa27cb325817cf0e439fffc52895ad4104568b5
tree7c35a0a61031454227f86f43f4a53ce696d3dc53
parent322041ffeb9076b1fbc753176723100c0a630976
realtek: mdio: apply phy polling config for RTL931x

Apply the PHY polling configuration for RTL931x too, as previously
implemented for RTL930x. This is needed for several PHYs on that
platform to function properly.

Add another flag called 'force_res' to the phy_info struct which is for
RTL931x only. The SDK mentions this as a flag to force polling the
Realtek proprietary PHY status resolution register. Effectively, this
changes the polling to proprietary format instead of standard format,
and sets an enable bit in another private polling register field.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21515
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c