[openwrt/openwrt] realtek: mdio: rename main mdio bus

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 7 08:42:27 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/dd7e88461e10aa70fec3945924e57d3539ef1c57

commit dd7e88461e10aa70fec3945924e57d3539ef1c57
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Sun Jan 25 18:19:44 2026 +0100

    realtek: mdio: rename main mdio bus
    
    Looking at the Realtek mdio busses there are curently the following
    
    root at OpenWrt:~# mdio
    1b000000.switchcore:mdio-controller-mii
    fixed-0
    realtek-aux-mdio
    realtek-serdes-mdio
    rtldsa_mdio-0
    
    The main mdio bus for the phys is named after the dts node it belongs
    to (1b000000.switchcore:mdio-controller-mii). As it is attached to the
    controller node it is even more confusing.
    
    Align the naming to the other busses and use "realtek-mdio".
    
    Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
    Link: https://github.com/openwrt/openwrt/pull/21702
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c b/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c
index e4a7ef49a3..8916d77766 100644
--- a/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c
+++ b/target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c
@@ -960,7 +960,7 @@ static int rtmdio_probe(struct platform_device *pdev)
 	bus->write_c45 = rtmdio_write_c45;
 	bus->parent = dev;
 	bus->phy_mask = ~0;
-	snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(dev));
+	snprintf(bus->id, MII_BUS_ID_SIZE, "realtek-mdio");
 
 	device_set_node(&bus->dev, of_fwnode_handle(dev->of_node));
 	ret = devm_mdiobus_register(dev, bus);




More information about the lede-commits mailing list