[U-Boot] [PATCH 1/2] drivers: net: fsl_enetc: set phydev->node
Michael Walle
michael at walle.cc
Sat Oct 26 00:39:11 UTC 2019
The saved ofnode is used by some PHY drivers to access the device tree
node of the PHY.
Signed-off-by: Michael Walle <michael at 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
More information about the U-Boot
mailing list