mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
drivers: net: zynq_gem: fix phy dt node setting
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@ti.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Tested-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
This commit is contained in:
parent
d4bb981700
commit
41080e180c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue