stmmac: fix phy naming inconsistency
Subsystems (4)
After commit "db8857b stmmac: use an unique MDIO bus name" my device stopped being probed because two different names were being used in different places. This fixes the inconsistency.
---
Before the commit, the phy was identified like this and stuff worked:
PHY ID 20005c90 at 1 IRQ 0 (506:01) active
After that commit, I get
PHY ID 20005c90 at 1 IRQ 0 (STMMAC MII Bus-1:01) active PHY stmmac-1:01 not found
In one place, "stmmac" is a static string, on the other the commit used the name field of the bus that was "STMMAC MII Bus", so I changed this older string to be nicer -- without spaces.
Maybe the name is available where "stmmac" is spelled out, but I didn't check.
Now it works for me:
eth1: PHY ID 20005c90 at 1 IRQ 0 (stmmac-1:01) active
PHY: stmmac-1:01 - Link is Up - 100/Fulldrivers/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
@@ -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.7.2
Florian Fainelli
Acked-byHello Alessandro,
Quoted 8 lines · Alessandro Rubini
After commit "db8857b stmmac: use an unique MDIO bus name" my device stopped being probed because two different names were being used in different places. This fixes the inconsistency.
Signed-off-by Alessandro Rubini<[email protected]>Acked-by Giancarlo Asnaghi<[email protected]>Cc Giuseppe Cavallaro<[email protected]>Cc Florian Fainelli<[email protected]>
Quoted 40 lines
---
Before the commit, the phy was identified like this and stuff worked:
PHY ID 20005c90 at 1 IRQ 0 (506:01) activeAfter that commit, I get
PHY ID
20005c90at 1 IRQ 0 (STMMAC MII Bus-1:01) active PHY stmmac-1:01 not foundIn one place, "stmmac" is a static string, on the other the commit used the name field of the bus that was "STMMAC MII Bus", so I changed this older string to be nicer -- without spaces.
Maybe the name is available where "stmmac" is spelled out, but I didn't check.
Now it works for me:
eth1: PHY ID 20005c90 at 1 IRQ 0 (stmmac-1:01) active PHY: stmmac-1:01 - Link is Up - 100/Fulldrivers/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@@ -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;
From: Florian Fainelli <[email protected]>
Date: Tue, 24 Jan 2012 12:06:30 +0100
Quoted 7 lines
Hello Alessandro,
Quoted 4 lines · Alessandro Rubini
After commit "db8857b stmmac: use an unique MDIO bus name" my device stopped being probed because two different names were being used in different places. This fixes the inconsistency.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Alessandro Rubini<[email protected]>Acked-by Giancarlo Asnaghi<[email protected]>Cc Giuseppe Cavallaro<[email protected]>Cc Florian Fainelli<[email protected]>Acked-by Florian Fainelli <[email protected]>
Applied, thanks.