drivers: net: fsl_enetc: set phydev->node
authorMichael Walle <michael@walle.cc>
Sat, 26 Oct 2019 00:39:11 +0000 (02:39 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 8 Nov 2019 05:53:01 +0000 (11:23 +0530)
The saved ofnode is used by some PHY drivers to access the device tree
node of the PHY.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Alex Marginean <alexm.osslist@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/fsl_enetc.c

index e7c5062c39ac7998d4cd4a9814e243bdad648ea9..86b80c89410f289596c20a92f5e0a301eacee364 100644 (file)
@@ -248,6 +248,7 @@ static void enetc_start_phy(struct udevice *dev)
 
        supported = GENMASK(6, 0); /* speeds up to 1G & AN */
        phy->advertising = phy->supported & supported;
+       phy->node = phy_node;
        phy_config(phy);
        phy_startup(phy);
 }