On Tue, Apr 05, 2022 at 05:19:26PM +0800, Andy Chiu wrote: > The call to axienet_mdio_setup should not depend on whether "phy-node" > pressents on the DT. Besides, since `lp->phy_node` is used if PHY is in > SGMII or 100Base-X modes, move it into the if statement. And the next patch > will remove `lp->phy_node` from driver's private structure and do an > of_node_put on it right away after use since it is not used elsewhere. > > Signed-off-by: Andy Chiu <andy.chiu@xxxxxxxxxx> > Reviewed-by: Greentime Hu <greentime.hu@xxxxxxxxxx> > Reviewed-by: Robert Hancock <robert.hancock@xxxxxxxxxx> Reviewed-by: Andrew Lunn <andrew@xxxxxxx> Andrew