|
@@ -307,7 +307,13 @@ static int stmmac_init_phy(struct net_device *dev)
|
|
|
priv->speed = 0;
|
|
|
priv->oldduplex = -1;
|
|
|
|
|
|
- snprintf(bus_id, MII_BUS_ID_SIZE, "stmmac-%x", priv->plat->bus_id);
|
|
|
+ if (priv->plat->phy_bus_name)
|
|
|
+ snprintf(bus_id, MII_BUS_ID_SIZE, "%s-%x",
|
|
|
+ priv->plat->phy_bus_name, priv->plat->bus_id);
|
|
|
+ else
|
|
|
+ snprintf(bus_id, MII_BUS_ID_SIZE, "stmmac-%x",
|
|
|
+ priv->plat->bus_id);
|
|
|
+
|
|
|
snprintf(phy_id, MII_BUS_ID_SIZE + 3, PHY_ID_FMT, bus_id,
|
|
|
priv->plat->phy_addr);
|
|
|
pr_debug("stmmac_init_phy: trying to attach to %s\n", phy_id);
|