Re: [U-Boot] [PATCH 2/3] net: phy: xilinx_phy: Add suuport for livetree
On 07/06/2018 05:10 AM, Siva Durga Prasad Paladugu wrote: This patch adds support for livetree by using dev_.. calls instead of fdtdec_.. . Signed-off-by: Siva Durga Prasad Paladugu --- drivers/net/phy/xilinx_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c index 004cfcf..2e2a5cd 100644 --- a/drivers/net/phy/xilinx_phy.c +++ b/drivers/net/phy/xilinx_phy.c @@ -103,8 +103,8 @@ static int xilinxphy_of_init(struct phy_device *phydev) u32 phytype; debug("%s\n", __func__); - phytype = fdtdec_get_int(gd->fdt_blob, dev_of_offset(phydev->dev), -"xlnx,phy-type", -1); + phytype = dev_read_u32_default(phydev->dev, + "xlnx,phy-type", -1); if (phytype == XAE_PHY_TYPE_1000BASE_X) phydev->flags |= XAE_PHY_TYPE_1000BASE_X; The same. NACK. Pls, check https://patchwork.ozlabs.org/cover/936370/ and https://patchwork.ozlabs.org/cover/936380/ any comments, tested-by are very welcome. -- regards, -grygorii ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 2/3] net: phy: xilinx_phy: Add suuport for livetree
On 6.7.2018 12:10, Siva Durga Prasad Paladugu wrote: > This patch adds support for livetree by using dev_.. > calls instead of fdtdec_.. . > typo in subject. M > Signed-off-by: Siva Durga Prasad Paladugu > --- > drivers/net/phy/xilinx_phy.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c > index 004cfcf..2e2a5cd 100644 > --- a/drivers/net/phy/xilinx_phy.c > +++ b/drivers/net/phy/xilinx_phy.c > @@ -103,8 +103,8 @@ static int xilinxphy_of_init(struct phy_device *phydev) > u32 phytype; > > debug("%s\n", __func__); > - phytype = fdtdec_get_int(gd->fdt_blob, dev_of_offset(phydev->dev), > - "xlnx,phy-type", -1); > + phytype = dev_read_u32_default(phydev->dev, > +"xlnx,phy-type", -1); > if (phytype == XAE_PHY_TYPE_1000BASE_X) > phydev->flags |= XAE_PHY_TYPE_1000BASE_X; > > ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] [PATCH 2/3] net: phy: xilinx_phy: Add suuport for livetree
This patch adds support for livetree by using dev_.. calls instead of fdtdec_.. . Signed-off-by: Siva Durga Prasad Paladugu --- drivers/net/phy/xilinx_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c index 004cfcf..2e2a5cd 100644 --- a/drivers/net/phy/xilinx_phy.c +++ b/drivers/net/phy/xilinx_phy.c @@ -103,8 +103,8 @@ static int xilinxphy_of_init(struct phy_device *phydev) u32 phytype; debug("%s\n", __func__); - phytype = fdtdec_get_int(gd->fdt_blob, dev_of_offset(phydev->dev), -"xlnx,phy-type", -1); + phytype = dev_read_u32_default(phydev->dev, + "xlnx,phy-type", -1); if (phytype == XAE_PHY_TYPE_1000BASE_X) phydev->flags |= XAE_PHY_TYPE_1000BASE_X; -- 2.7.4 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot