openwrt/target/linux/realtek
Carlo Szelinsky a36ab12454 realtek: mdio: register PHYs via fwnode for PSE support
Switch from auto-scan PHY discovery to explicit DT-based registration
using fwnode_mdiobus_register_phy(). This is the standard approach used
by of_mdiobus_register() and most MDIO drivers.

Auto-scan (phy_mask-based) registration does not attach DT fwnode data
to PHY devices, which means DT properties like "pses" are never parsed.
As a result, PSE controllers referenced from PHY nodes are not linked,
and ethtool PSE commands (--show-pse, --set-pse) do not work.

Store the device_node for each PHY found during DT parsing, suppress
auto-scan by setting phy_mask to ~0, and register each PHY explicitly
after devm_mdiobus_register(). This allows fwnode_find_pse_control() to
resolve PSE references and also establishes proper fw_devlink supplier
relationships.

Additionally this fixes a bug where the RTL8221B is limited to
1G and below due to missing DTS references.

Fixes: 4e00306 ("realtek: mdio: use bus auto registration")

Signed-off-by: Carlo Szelinsky <github@szelinsky.de>
Link: https://github.com/openwrt/openwrt/pull/22019
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-02-19 10:46:45 +01:00
..
base-files realtek: switch Zyxel XGS1210 to NVMEM 2026-02-15 12:02:38 +01:00
dts realtek: switch Zyxel XGS1210 to NVMEM 2026-02-15 12:02:38 +01:00
files-6.12 realtek: mdio: register PHYs via fwnode for PSE support 2026-02-19 10:46:45 +01:00
image realtek: add support for Zyxel GS1920-24HPv2 2026-02-13 23:33:25 +01:00
patches-6.12 kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl839x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl930x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl930x_nand realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl931x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl931x_nand realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00