]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: mdio: use helper for smi topology setup
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 13 Feb 2026 18:58:37 +0000 (19:58 +0100)
committerRobert Marko <robimarko@gmail.com>
Mon, 16 Feb 2026 14:44:20 +0000 (15:44 +0100)
commitafbbf21714b6f0229d8efa37f47a74cfeac53379
tree3a6c0bf43bf42acbe51e712115fb89e127675aa1
parent4026f8843fa44e202b79ddb1387b3f5ddb88f566
realtek: mdio: use helper for smi topology setup

On RTL930x, RTL931x and even RTL838x the smi topology is
configured very similar. There is a bus mapping (RTL930x
and RTL931x) and a port mapping (all three). Define a
common helper that can take care of this setup and call
it before bus registration.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22008
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c