Anatolij Gustschin 1ab8be4a14 net/davinci_emac: fix failing PHY connect attempts
PHY connect attempts fail if no PHY id is specified in the emac platform
data and another mdio bus has been registered before 'davinci_mdio' bus. In
this case when configuring the interface, there will be an attempt to
connect to already attached PHY on the previously registered mdio bus:

net eth1: PHY already attached
net eth1: could not connect to phy smsc911x-0:01
IP-Config: Failed to open eth1
IP-Config: Device `eth1' not found

Fix this by modifying match_first_device() to match first PHY device
on 'davinci_mdio' bus.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-04-24 00:43:55 -04:00
..
2012-04-24 00:29:18 -04:00
2012-04-17 14:17:05 -04:00
2012-04-16 23:56:36 -04:00
2012-03-27 22:45:26 -04:00
2012-02-14 10:45:42 +11:00
2012-02-01 16:49:50 +01:00
2012-03-28 18:30:03 +01:00
2012-04-06 17:54:53 -07:00