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

Subsystems: networking drivers, stmmac ethernet driver, the rest

STALE5314d

2 messages, 2 authors, 2012-01-26 · open the first message on its own page

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

From: Stefan Roese <sr@denx.de>
Date: 2012-01-26 14:47:24

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.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Florian Fainelli <florian@openwrt.org>
Cc: Giuseppe Cavallaro <redacted>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
index da4a104..7319532 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
@@ -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;
-- 
1.7.8.4

Re: [PATCH] stmmac: Use correct MDIO bus name so that phy_connect() works again

From: Florian Fainelli <florian@openwrt.org>
Date: 2012-01-26 17:23:08

On 01/26/12 15:46, Stefan Roese wrote:
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 hunk
Signed-off-by: Stefan Roese<sr@denx.de>
Cc: Florian Fainelli<florian@openwrt.org>
Cc: Giuseppe Cavallaro<redacted>
---
  drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
index da4a104..7319532 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c
@@ -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;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help