]> Git Repo - J-u-boot.git/commitdiff
drivers: net: fsl_enetc: set phydev->node
authorMichael Walle <[email protected]>
Sat, 26 Oct 2019 00:39:11 +0000 (02:39 +0200)
committerPriyanka Jain <[email protected]>
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 <[email protected]>
Reviewed-by: Alex Marginean <[email protected]>
Reviewed-by: Priyanka Jain <[email protected]>
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);
 }
This page took 0.037396 seconds and 4 git commands to generate.