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 <[email protected]>
Cc: Alexey Brodkin <[email protected]>
if (!phydev)
return -1;
+ phy_connect_dev(phydev, dev);
+
phydev->supported &= PHY_GBIT_FEATURES;
phydev->advertising = phydev->supported;