realtek: mdio: register SerDes bus so it can be looked up
authorMarkus Stockhausen <[email protected]>
Thu, 18 Sep 2025 06:35:32 +0000 (02:35 -0400)
committerRobert Marko <[email protected]>
Thu, 18 Sep 2025 08:44:36 +0000 (10:44 +0200)
commite2271a1dab16dc98e37dbea5ba652ccbc1ba5c54
treecebedb81d21705df195278d0d5db561da8575608
parentbb783e8548c5e44edcb285393e54c7cd06fd455a
realtek: mdio: register SerDes bus so it can be looked up

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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20078
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto-serdes.c