mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user