[U-Boot] [PATCH v3 1/5] net/designware: call phy_connect_dev() to properly setup phylib device
Ian Campbell
ijc at hellion.org.uk
Thu May 8 23:26:31 CEST 2014
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 at hellion.org.uk>
Cc: Alexey Brodkin <Alexey.Brodkin at synopsys.com>
---
drivers/net/designware.c | 2 ++
1 file changed, 2 insertions(+)
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;
--
1.9.0
More information about the U-Boot
mailing list