From: Markus Stockhausen Date: Wed, 24 Dec 2025 11:47:06 +0000 (+0100) Subject: realtek: mdio: give bus a family independent name X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=87a3c62e3288746cd01b642b26c1947deeaba45c;p=openwrt%2Fopenwrt.git 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 Link: https://github.com/openwrt/openwrt/pull/21274 Signed-off-by: Robert Marko --- 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;