]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: mdio: drop interfaces attribute 21469/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 9 Jan 2026 17:53:04 +0000 (18:53 +0100)
committerStijn Tintel <stijn@linux-ipv6.be>
Mon, 12 Jan 2026 13:43:35 +0000 (15:43 +0200)
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 <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21469
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c

index 9a511166ebe0a4d1e70b2f4d1c7e14dc0e5d8456..acaed57f3fef37e6a7b9661697a72d2cebda27b1 100644 (file)
@@ -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);