From: Ian Campbell Date: Mon, 28 Apr 2014 19:14:05 +0000 (+0100) Subject: net/designware: call phy_connect_dev() to properly setup phylib device X-Git-Tag: v2014.07-rc2~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=15e82e5309ed706fa2878aed3b225aa48ae960c7;p=u-boot 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: Waiting for PHY auto negotiation to complete.... rather than: dwmac.1c50000 Waiting for PHY auto negotiation to complete.... Signed-off-by: Ian Campbell Cc: Alexey Brodkin --- diff --git a/drivers/net/designware.c b/drivers/net/designware.c index c45593bcc0..78751b2600 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;