realtek: mdio: register SerDes bus so it can be looked up
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run

The upcoming PCS driver will lookup the SerDes mdio bus via
of_mdio_find_bus() and the devicetree. This is only possible
with proper registration via devm_of_mdiobus_register().

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/20078
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
Markus Stockhausen 2025-09-18 02:35:32 -04:00 committed by Robert Marko
parent bb783e8548
commit e2271a1dab

View file

@ -442,7 +442,7 @@ static int rtsds_probe(struct platform_device *pdev)
bus->write_c45 = rtsds_write;
bus->phy_mask = ~0ULL;
ret = devm_mdiobus_register(dev, bus);
ret = devm_of_mdiobus_register(dev, bus, dev->of_node);
if (ret)
return ret;
@ -451,7 +451,7 @@ static int rtsds_probe(struct platform_device *pdev)
rtsds_debug_init(ctrl, sds);
#endif
dev_info(dev, "Realtek SerDes mdio bus initialized. %d SerDes, %d pages, %d registers.",
dev_info(dev, "Realtek SerDes mdio bus initialized, %d SerDes, %d pages, %d registers\n",
ctrl->cfg->sds_cnt, ctrl->cfg->page_cnt, RTSDS_REG_CNT);
return 0;