From: Michael Walle Date: Sat, 26 Oct 2019 00:39:11 +0000 (+0200) Subject: drivers: net: fsl_enetc: set phydev->node X-Git-Tag: v2020.01-rc2~6^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2efb147a0a3388c7e93b87ae86bf457fcff802b0;p=oweals%2Fu-boot.git drivers: net: fsl_enetc: set phydev->node The saved ofnode is used by some PHY drivers to access the device tree node of the PHY. Signed-off-by: Michael Walle Reviewed-by: Alex Marginean Reviewed-by: Priyanka Jain --- 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); }