Re: [PATCH 0/2] net: phy: relax error checking when creating sysfs link netdev->phydev
From: Andrew Lunn
Date: Fri Mar 16 2018 - 16:35:15 EST
> The phydrv->mdiodrv.flags can be accessible only after call to of_phy_connect()/phy_connect(),
You need to use a function like of_phy_find_device() to get the
phydev, set the flag, and then call phy_connect_direct().
Andrew