Skip to content

Commit dd7e884

Browse files
plappermaulhauke
authored andcommitted
realtek: mdio: rename main mdio bus
Looking at the Realtek mdio busses there are curently the following root@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@gmx.de> Link: openwrt/openwrt#21702 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 27a2cbe commit dd7e884

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ static int rtmdio_probe(struct platform_device *pdev)
960960
bus->write_c45 = rtmdio_write_c45;
961961
bus->parent = dev;
962962
bus->phy_mask = ~0;
963-
snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(dev));
963+
snprintf(bus->id, MII_BUS_ID_SIZE, "realtek-mdio");
964964

965965
device_set_node(&bus->dev, of_fwnode_handle(dev->of_node));
966966
ret = devm_mdiobus_register(dev, bus);

0 commit comments

Comments
 (0)