openwrt/target/linux
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
..
airoha kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
apm821xx
armsr
at91
ath79 ath79: mr18: use nvmem for MACs 2026-02-17 20:56:27 +01:00
bcm27xx kernel: bump 6.12 to 6.12.70 2026-02-14 18:30:02 +01:00
bcm47xx
bcm53xx bcm53xx: fix target name of meraki_mx64-a0 2026-02-17 01:38:01 +01:00
bcm4908
bmips
d1
econet econet: en7528: add PCIe and WiFi support 2026-02-15 01:12:52 +01:00
gemini gemini: add support for Teltonika RUT104 2026-02-17 11:27:22 +01:00
generic Revert "kernel: revert ip6_tunnel use skb_vlan_inet_prepare() in __ip6_tnl_rcv()" 2026-02-15 13:21:44 +01:00
imx
ipq40xx ipq40xx: add support for Cisco Meraki MR70 2026-02-18 19:14:57 +01:00
ipq806x ipq806x: move Device DTS to dedicated DTS directory 2026-02-16 13:14:49 +01:00
ixp4xx
kirkwood
lantiq lantiq: handle EPROBE_DEFER for MAC 2026-02-16 21:26:05 +01:00
layerscape kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
loongarch64
malta
mediatek mediatek: dts: drop wrong sgmiisys0 node override 2026-02-17 21:02:51 +01:00
microchipsw
mpc85xx
mvebu
mxs
octeon
omap
pistachio
qoriq
qualcommax qualcommax: move CMCC MR3000D-CI DTS to the DTS dir 2026-02-17 20:50:05 +01:00
qualcommbe qualcommbe: move Device DTS to dedicated DTS directory 2026-02-16 13:14:32 +01:00
ramips ramips: remove obsolete SPI flash nodes after kernel fix 2026-02-16 10:47:31 +01:00
realtek realtek: mdio: register PHYs via fwnode for PSE support 2026-02-19 10:46:45 +01:00
rockchip
sifiveu
siflower
starfive
stm32
sunxi
tegra
uml
x86
zynq
Makefile