Skip to content

Commit 87a3c62

Browse files
plappermaulrobimarko
authored andcommitted
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 <[email protected]> Link: openwrt/openwrt#21274 Signed-off-by: Robert Marko <[email protected]>
1 parent b7f519f commit 87a3c62

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,23 +1439,20 @@ static int rtmdio_probe(struct platform_device *pdev)
14391439

14401440
switch (family) {
14411441
case RTMDIO_838X_FAMILY_ID:
1442-
bus->name = "rtl838x-eth-mdio";
14431442
bus->reset = rtmdio_838x_reset;
14441443
break;
14451444
case RTMDIO_839X_FAMILY_ID:
1446-
bus->name = "rtl839x-eth-mdio";
14471445
bus->reset = rtmdio_839x_reset;
14481446
break;
14491447
case RTMDIO_930X_FAMILY_ID:
1450-
bus->name = "rtl930x-eth-mdio";
14511448
bus->reset = rtmdio_930x_reset;
14521449
break;
14531450
case RTMDIO_931X_FAMILY_ID:
1454-
bus->name = "rtl931x-eth-mdio";
14551451
bus->reset = rtmdio_931x_reset;
14561452
break;
14571453
}
14581454

1455+
bus->name = "Realtek MDIO bus";
14591456
bus->read = rtmdio_read;
14601457
bus->write = rtmdio_write;
14611458
bus->read_c45 = rtmdio_read_c45;

0 commit comments

Comments
 (0)