[U-Boot] [PATCH v2 5/5] drivers: net: zynq_gem: fix phy dt node setting

Grygorii Strashko grygorii.strashko at ti.com
Thu Jul 5 17:02:52 UTC 2018


Now zynq_gem driver will overwrite UCLASS_ETH node when PHY is
connected and configured which is not correct.
Use struct phydev->node instead.

Signed-off-by: Grygorii Strashko <grygorii.strashko at ti.com>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>
---
 drivers/net/zynq_gem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index d1138fe..0f56cda 100644
--- a/drivers/net/zynq_gem.c
+++ b/drivers/net/zynq_gem.c
@@ -350,7 +350,7 @@ static int zynq_phy_init(struct udevice *dev)
 	priv->phydev->advertising = priv->phydev->supported;
 
 	if (priv->phy_of_handle > 0)
-		dev_set_of_offset(priv->phydev->dev, priv->phy_of_handle);
+		priv->phydev->node = offset_to_ofnode(priv->phy_of_handle);
 
 	return phy_config(priv->phydev);
 }
-- 
2.10.5



More information about the U-Boot mailing list