summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorIan Campbell <ijc@hellion.org.uk>2014-04-28 20:14:05 +0100
committerTom Rini <trini@ti.com>2014-05-12 16:31:51 -0400
commit15e82e5309ed706fa2878aed3b225aa48ae960c7 (patch)
tree533b46f810b02e173824842c4079d9469921443f /drivers
parent1b37fa832a4b1d525348ff49c9f6951c73bc145a (diff)
downloadu-boot-imx-15e82e5309ed706fa2878aed3b225aa48ae960c7.zip
u-boot-imx-15e82e5309ed706fa2878aed3b225aa48ae960c7.tar.gz
u-boot-imx-15e82e5309ed706fa2878aed3b225aa48ae960c7.tar.bz2
net/designware: call phy_connect_dev() to properly setup phylib device
This sets up the linkage from the phydev back to the ethernet device. This symptom of not doing this which I noticed was: <NULL> Waiting for PHY auto negotiation to complete.... rather than: dwmac.1c50000 Waiting for PHY auto negotiation to complete.... Signed-off-by: Ian Campbell <ijc@hellion.org.uk> Cc: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/designware.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index c45593b..78751b2 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -390,6 +390,8 @@ static int dw_phy_init(struct eth_device *dev)
if (!phydev)
return -1;
+ phy_connect_dev(phydev, dev);
+
phydev->supported &= PHY_GBIT_FEATURES;
phydev->advertising = phydev->supported;