]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/83xx: mpc836x - fix failed phy detection for ucc ethernet on MDS
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 27 Feb 2012 12:25:01 +0000 (07:25 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 16 Mar 2012 19:34:19 +0000 (14:34 -0500)
commit1ee4af86fa16d636dfd1a6f2e7fc70f34b5eb9b1
tree69c958a896e6ed93b527ca5b21d2b590363c4843
parent6597c713b7a8a77ea8696a1df4bbb673f3de22aa
powerpc/83xx: mpc836x - fix failed phy detection for ucc ethernet on MDS

The mpc836x_mds platform has been broken since the commit
6fe3264945ee63292cdfb27b6e95bc52c603bb09

  "netdev/phy: Use mdiobus_read() so that proper locks are taken"

which caused the fsl_pq_mdio TBI autoprobe to oops.  The oops
was "fixed" in commit 28d8ea2d568534026ccda3e8936f5ea1e04a86a1

  "fsl_pq_mdio: Clean up tbi address configuration"

by simply removing the the autoscan code, and making tbi nodes
mandatory.  Some of the newer reference platforms were updated
to have tbi nodes in 220669495bf8b68130a8218607147c7b74c28d2b

  "powerpc: Add TBI PHY node to first MDIO bus"

but the older mpc836x didn't get one and hence was just failing
with -EBUSY as follows:

 fsl-pq_mdio: probe of e0102120.mdio failed with error -16
   ...
 net eth0: Could not attach to PHY
 eth0: Cannot initialize PHY, aborting.

Add a TBI node and use the 1st free address for it.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/boot/dts/mpc836x_mds.dts