mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
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
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:
parent
bb783e8548
commit
e2271a1dab
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue