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 <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/21469 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
parent
b2717357a7
commit
5c5823afdc
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user