Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300503
b: refs/heads/master
c: f142af2
h: refs/heads/master
i:
  300501: c0621bf
  300499: 0a44f56
  300495: d5746fb
v: v3
  • Loading branch information
Srinivas Kandagatla authored and David S. Miller committed Apr 4, 2012
1 parent 0b842a0 commit 4451212
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9450f7506d28276c603275f84e54fc8779fb516c
refs/heads/master: f142af2e2064546ac470e8690acbd189b3584e67
8 changes: 7 additions & 1 deletion trunk/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/stmmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct stmmac_mdio_bus_data {
};

struct plat_stmmacenet_data {
char *phy_bus_name;
int bus_id;
int phy_addr;
int interface;
Expand Down

0 comments on commit 4451212

Please sign in to comment.