projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
452448f
)
net: fsl_pq_mdio: fix non tbi phy access
author
Baruch Siach
<
[email protected]
>
Mon, 14 Nov 2011 06:21:30 +0000
(08:21 +0200)
committer
David S. Miller
<
[email protected]
>
Mon, 14 Nov 2011 06:44:55 +0000
(
01:44
-0500)
Since
952c5ca1
(fsl_pq_mdio: Clean up tbi address configuration) .probe returns
-EBUSY when the "tbi-phy" node is missing. Fix this.
Cc: Andy Fleming <
[email protected]
>
Signed-off-by: Baruch Siach <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/freescale/fsl_pq_mdio.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/freescale/fsl_pq_mdio.c
b/drivers/net/ethernet/freescale/fsl_pq_mdio.c
index 4d9f84b8ab9773ef91d75f395907fd9b3f9c25de..8dee1aed47e4c15a912cbddcb29608fa5ed3f811 100644
(file)
--- a/
drivers/net/ethernet/freescale/fsl_pq_mdio.c
+++ b/
drivers/net/ethernet/freescale/fsl_pq_mdio.c
@@
-356,16
+356,16
@@
static int fsl_pq_mdio_probe(struct platform_device *ofdev)
if (prop)
tbiaddr = *prop;
- }
- if (tbiaddr == -1) {
- err = -EBUSY;
+
if (tbiaddr == -1) {
+
err = -EBUSY;
- goto err_free_irqs;
+ goto err_free_irqs;
+ } else {
+ out_be32(tbipa, tbiaddr);
+ }
}
- out_be32(tbipa, tbiaddr);
-
err = of_mdiobus_register(new_bus, np);
if (err) {
printk (KERN_ERR "%s: Cannot register as MDIO bus\n",