]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
fsl_pq_mdio: Revive Gianfar TBI PHY support
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Sat, 21 Mar 2009 20:30:05 +0000 (13:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Mar 2009 20:30:05 +0000 (13:30 -0700)
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>
drivers/net/fsl_pq_mdio.c

index b0ce1445d4a89a0c036bd6d80f90f2e2024ed49a..6be36b9bc31b0728d318ae536dfcc52d60210910 100644 (file)
@@ -321,6 +321,7 @@ static int fsl_pq_mdio_probe(struct of_device *ofdev,
        dev_set_drvdata(&ofdev->dev, new_bus);
 
        if (of_device_is_compatible(np, "fsl,gianfar-mdio") ||
+                       of_device_is_compatible(np, "fsl,gianfar-tbi") ||
                        of_device_is_compatible(np, "gianfar")) {
 #ifdef CONFIG_GIANFAR
                tbipa = get_gfar_tbipa(regs);