diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-03-31 04:33:52 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-02 04:28:00 -0400 |
commit | 0ac023faa69e54c0c443da360fa2bf8fbd9e3078 (patch) | |
tree | c602e73a72f49feda998f0f64ffc512466d47cc6 /drivers | |
parent | da1aa63ec3b4e9b4c5680f06288f57f44caa61b8 (diff) |
fsl_pq_mdio: Revive UCC MDIO support
commit 1577ecef766650a57fceb171acee2b13cbfaf1d3 ("netdev: Merge UCC
and gianfar MDIO bus drivers") introduced a regression so that UCC
MDIO buses no longer work.
This is because fsl_pq_mdio driver wrongly masks all non-TBI PHYs
for !fsl,gianfar-mdio buses, while it should do that only for
fsl,gianfar-tbi buses.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/fsl_pq_mdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fsl_pq_mdio.c b/drivers/net/fsl_pq_mdio.c index b3079a5a7f2b..d9e1ecfbf360 100644 --- a/drivers/net/fsl_pq_mdio.c +++ b/drivers/net/fsl_pq_mdio.c | |||
@@ -387,7 +387,7 @@ static int fsl_pq_mdio_probe(struct of_device *ofdev, | |||
387 | * The TBIPHY-only buses will find PHYs at every address, | 387 | * The TBIPHY-only buses will find PHYs at every address, |
388 | * so we mask them all but the TBI | 388 | * so we mask them all but the TBI |
389 | */ | 389 | */ |
390 | if (!of_device_is_compatible(np, "fsl,gianfar-mdio")) | 390 | if (of_device_is_compatible(np, "fsl,gianfar-tbi")) |
391 | new_bus->phy_mask = ~(1 << tbiaddr); | 391 | new_bus->phy_mask = ~(1 << tbiaddr); |
392 | 392 | ||
393 | err = mdiobus_register(new_bus); | 393 | err = mdiobus_register(new_bus); |