diff mbox series

[U-Boot,1/2] drivers: net: fsl_enetc: set phydev->node

Message ID 20191026003912.31511-1-michael@walle.cc
State Accepted
Commit 2efb147a0a3388c7e93b87ae86bf457fcff802b0
Delegated to: Priyanka Jain
Headers show
Series [U-Boot,1/2] drivers: net: fsl_enetc: set phydev->node | expand

Commit Message

Michael Walle Oct. 26, 2019, 12:39 a.m. UTC
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>
---
 drivers/net/fsl_enetc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Alexandru Marginean Oct. 29, 2019, 2:56 p.m. UTC | #1
On 10/26/2019 2:39 AM, Michael Walle wrote:
> 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>
> ---
>   drivers/net/fsl_enetc.c | 1 +
>   1 file changed, 1 insertion(+)
> 

Reviewed-by: Alex Marginean <alexm.osslist@gmail.com>
Priyanka Jain Nov. 11, 2019, 3:22 p.m. UTC | #2
>-----Original Message-----
>From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Michael Walle
>Sent: Saturday, October 26, 2019 6:09 AM
>To: u-boot@lists.denx.de
>Cc: Joe Hershberger <joe.hershberger@ni.com>; Catalin Horghidan
><catalin.horghidan@nxp.com>
>Subject: [U-Boot] [PATCH 1/2] 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 <michael@walle.cc>
>---

Applied to fsl-qoriq master, awaiting upstream.

Thanks
priyankajain
diff mbox series

Patch

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);
 }