]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: mdio: register mdio bus at controller node
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 12 Jan 2026 16:20:39 +0000 (17:20 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 21 Jan 2026 22:32:54 +0000 (23:32 +0100)
commit631e066bc3b58ed40ebdec1fdc8d2349c8074efe
treef2f3faeb10712fa1f1f913f9df6ed10a547ff362
parent84a6288a0849fa0ef56a12e7bf028f07c0c6884f
realtek: mdio: register mdio bus at controller node

In the future the mdio controller will have multiple busses
defined in the dts below the controller node. Nevertheless
it will still hand out only one single bus to the kernel.
Attach the (exported) bus to the controller node instead of
the single (dts) bus subnode.

With this change the mdio lookup in the dsa driver must
be changed to point to the mdio controller node too.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21438
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/common.c
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c