diff options
author | Ian Campbell <ijc@hellion.org.uk> | 2014-04-28 20:14:05 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-12 16:31:51 -0400 |
commit | 15e82e5309ed706fa2878aed3b225aa48ae960c7 (patch) | |
tree | 533b46f810b02e173824842c4079d9469921443f | |
parent | 1b37fa832a4b1d525348ff49c9f6951c73bc145a (diff) |
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>
-rw-r--r-- | drivers/net/designware.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |