]> git.sur5r.net Git - u-boot/commitdiff
net/designware: call phy_connect_dev() to properly setup phylib device
authorIan Campbell <ijc@hellion.org.uk>
Mon, 28 Apr 2014 19:14:05 +0000 (20:14 +0100)
committerTom Rini <trini@ti.com>
Mon, 12 May 2014 20:31:51 +0000 (16:31 -0400)
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

index c45593bcc0970d18f2cb4b5bd6af518d410b4a0e..78751b2600c683a9bb9079c0a28b8c7beeab266c 100644 (file)
@@ -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;