diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-03-21 16:30:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-21 16:30:05 -0400 |
commit | 301968451de7979f454b96a798869f8668ceab1a (patch) | |
tree | 4c91d7948aadabab68d3c9bd3d168d903e1f1079 | |
parent | 04ec5cfcfd9a69c16fc8adb9d7f4836eedb84e53 (diff) |
fsl_pq_mdio: Revive Gianfar TBI PHY support
commit 1577ecef766650a57fceb171acee2b13cbfaf1d3 ("netdev: Merge UCC
and gianfar MDIO bus drivers") broke the TSEC TBI PHY support: the
driver now refuses to probe TBI MDIO buses as it doesn't know about
"fsl,gianfar-tbi" compatible entry, and thus _probe() fails with
-ENODEV status.
Fix this by adding "fsl,gianfar-tbi" to the list of known Gianfar
MDIO buses.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/fsl_pq_mdio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/fsl_pq_mdio.c b/drivers/net/fsl_pq_mdio.c index b0ce1445d4a8..6be36b9bc31b 100644 --- a/drivers/net/fsl_pq_mdio.c +++ b/drivers/net/fsl_pq_mdio.c | |||
@@ -321,6 +321,7 @@ static int fsl_pq_mdio_probe(struct of_device *ofdev, | |||
321 | dev_set_drvdata(&ofdev->dev, new_bus); | 321 | dev_set_drvdata(&ofdev->dev, new_bus); |
322 | 322 | ||
323 | if (of_device_is_compatible(np, "fsl,gianfar-mdio") || | 323 | if (of_device_is_compatible(np, "fsl,gianfar-mdio") || |
324 | of_device_is_compatible(np, "fsl,gianfar-tbi") || | ||
324 | of_device_is_compatible(np, "gianfar")) { | 325 | of_device_is_compatible(np, "gianfar")) { |
325 | #ifdef CONFIG_GIANFAR | 326 | #ifdef CONFIG_GIANFAR |
326 | tbipa = get_gfar_tbipa(regs); | 327 | tbipa = get_gfar_tbipa(regs); |