[openwrt/openwrt] realtek: mdio: give bus a family independent name

LEDE Commits lede-commits at lists.infradead.org
Mon Dec 29 03:57:13 PST 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/87a3c62e3288746cd01b642b26c1947deeaba45c

commit 87a3c62e3288746cd01b642b26c1947deeaba45c
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Wed Dec 24 12:47:06 2025 +0100

    realtek: mdio: give bus a family independent name
    
    There is no need to give the mdio bus a family dependent name.
    Name the bus similar to the SerDes mdio bus.
    
    Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
    Link: https://github.com/openwrt/openwrt/pull/21274
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

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 14f3e1668e..176c152fec 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
@@ -1439,23 +1439,20 @@ static int rtmdio_probe(struct platform_device *pdev)
 
 	switch (family) {
 	case RTMDIO_838X_FAMILY_ID:
-		bus->name = "rtl838x-eth-mdio";
 		bus->reset = rtmdio_838x_reset;
 		break;
 	case RTMDIO_839X_FAMILY_ID:
-		bus->name = "rtl839x-eth-mdio";
 		bus->reset = rtmdio_839x_reset;
 		break;
 	case RTMDIO_930X_FAMILY_ID:
-		bus->name = "rtl930x-eth-mdio";
 		bus->reset = rtmdio_930x_reset;
 		break;
 	case RTMDIO_931X_FAMILY_ID:
-		bus->name = "rtl931x-eth-mdio";
 		bus->reset = rtmdio_931x_reset;
 		break;
 	}
 
+	bus->name = "Realtek MDIO bus";
 	bus->read = rtmdio_read;
 	bus->write = rtmdio_write;
 	bus->read_c45 = rtmdio_read_c45;




More information about the lede-commits mailing list