Skip to contentSkip to conversation

stmmac: Use correct MDIO bus name so that phy_connect() works again

PATCH In review Stefan Roese 2 participants 2 messages Jan 26, 2012

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stmmac: Use correct MDIO bus name so that phy_connect() works again

Patch db8857bf [stmmac: use an unique MDIO bus name.] changed the MDIO bus name. After this phy_connect() fails. This patch changes the bus name in stmmac_mdio.c so that the name matching works again.

Cc Florian Fainelli <[email protected]>
Cc Giuseppe Cavallaro <[email protected]>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +1 -1
index da4a104..7319532 100644
@@ -154,7 +154,7 @@ int stmmac_mdio_register(struct net_device *ndev)
 	else
 		irqlist = priv->mii_irq;
 
-	new_bus->name = "STMMAC MII Bus";
+	new_bus->name = "stmmac";
 	new_bus->read = &stmmac_mdio_read;
 	new_bus->write = &stmmac_mdio_write;
 	new_bus->reset = &stmmac_mdio_reset;
Signature · 1 line
1.7.8.4
#1 lore raw
Quoted 4 lines · Stefan Roese

Patch db8857bf [stmmac: use an unique MDIO bus name.] changed the MDIO bus name. After this phy_connect() fails. This patch changes the bus name in stmmac_mdio.c so that the name matching works again.

Alessandro already proposed such a patch: http://patchwork.ozlabs.org/patch/137531/
which has been applied by David already.

Quoted 21 lines
Cc Florian Fainelli<[email protected]>
Cc Giuseppe Cavallaro<[email protected]>
---
  drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +1 -1
index da4a104..7319532 100644
@@ -154,7 +154,7 @@ int stmmac_mdio_register(struct net_device *ndev)
  	else
  		irqlist = priv->mii_irq;
 
-	new_bus->name = "STMMAC MII Bus";
+	new_bus->name = "stmmac";
  	new_bus->read =&stmmac_mdio_read;
  	new_bus->write =&stmmac_mdio_write;
  	new_bus->reset =&stmmac_mdio_reset;