U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] net/designware: call phy_connect_dev() to properly setup phylib device
@ 2014-04-28 19:14 Ian Campbell
  2014-05-13  1:53 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Campbell @ 2014-04-28 19:14 UTC (permalink / raw)
  To: u-boot

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>
---
 drivers/net/designware.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index c9afe16..b8a7631 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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-21 19:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-28 19:14 [U-Boot] [PATCH] net/designware: call phy_connect_dev() to properly setup phylib device Ian Campbell
2014-05-13  1:53 ` [U-Boot] " Tom Rini
2014-05-13 10:19   ` Ian Campbell
2014-05-13 11:19     ` Tom Rini
2014-05-14  7:29       ` Ian Campbell
2014-05-14 15:20         ` Tom Rini
2014-05-21 18:44           ` Ian Campbell
2014-05-21 19:33             ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox