mirror of
https://github.com/openwrt/openwrt.git
synced 2026-06-17 19:11:38 +04:00
084da38a2e
The mdio controller inside the Realtek switches drives multiple busses. Until now the driver exposed a flattened single bus (aka port view). Align to the upstream driver and expose up to 4 busses depending on the dts definition. For this: 1. Adapt rtmdio_probe() so it calls rtmdio_probe_one() for each child dts child node that represents a single bus. 2. Adapt rtmdio_probe_one() so it registers a single bus in "full-auto" mode. No more hacks via fwnode_mdiobus_register_phy() needed. 3. Adapt rtmdio_phy_to_port() so it uses a lookup based on the new topology. 4. Adapt rtmdio_get_phy_info() for multiple busses. 5. In the DSA driver adapt the mdio controller load check to wait until all busses have been registered. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/22830 Signed-off-by: Robert Marko <robimarko@gmail.com>