From 5c5823afdcce797c313d5d105801490289c0b340 Mon Sep 17 00:00:00 2001 From: Markus Stockhausen Date: Fri, 9 Jan 2026 18:53:04 +0100 Subject: [PATCH] realtek: mdio: drop interfaces attribute The interfaces attribute of the mdio bus held the information about the connection mode (qsgmii, sgmii, ...). This was only used during the old RTL930x setup. Drop it because it is not needed any longer. Signed-off-by: Markus Stockhausen Link: https://github.com/openwrt/openwrt/pull/21469 Signed-off-by: Stijn Tintel --- .../files-6.12/drivers/net/mdio/mdio-realtek-otto.c | 12 ------------ 1 file changed, 12 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 9a511166ebe..acaed57f3fe 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 @@ -150,7 +150,6 @@ struct rtmdio_bus_priv { int smi_bus[RTMDIO_MAX_PORT]; u8 smi_addr[RTMDIO_MAX_PORT]; bool smi_bus_isc45[RTMDIO_MAX_SMI_BUS]; - phy_interface_t interfaces[RTMDIO_MAX_PORT]; }; struct rtmdio_config { @@ -1081,17 +1080,6 @@ static int rtmdio_probe(struct platform_device *pdev) return -ENODEV; } - for_each_node_by_name(dn, "port") { - if (of_property_read_u32(dn, "reg", &pn)) - continue; - dev_dbg(dev, "Looking at port %d\n", pn); - if (pn > priv->cfg->cpu_port) - continue; - if (of_get_phy_mode(dn, &priv->interfaces[pn])) - priv->interfaces[pn] = PHY_INTERFACE_MODE_NA; - dev_dbg(dev, "phy mode of port %d is %s\n", pn, phy_modes(priv->interfaces[pn])); - } - snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(dev)); return devm_of_mdiobus_register(dev, bus, mii_np); -- 2.47.3