The saved ofnode is used by some PHY drivers to access the device tree
node of the PHY.

Signed-off-by: Michael Walle <mich...@walle.cc>
---
 drivers/net/fsl_enetc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c
index e7c5062c39..86b80c8941 100644
--- a/drivers/net/fsl_enetc.c
+++ b/drivers/net/fsl_enetc.c
@@ -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);
 }
-- 
2.20.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to