All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] net: phy: xilinx_phy: Read phytype using property xlnx, phy-type
@ 2018-03-28 14:36 Michal Simek
  2018-03-29  3:45 ` Joe Hershberger
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2018-03-28 14:36 UTC (permalink / raw)
  To: u-boot

From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>

This patch reads phytype from property "xlnx,phy-type" instead
od simply looking for "phy-type". This is to be inline with
Linux and also fixes the issue of detecting it wrongly in
u-boot.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/net/phy/xilinx_phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c
index 3f80f0495e8d..7142a99ce580 100644
--- a/drivers/net/phy/xilinx_phy.c
+++ b/drivers/net/phy/xilinx_phy.c
@@ -105,7 +105,7 @@ static int xilinxphy_of_init(struct phy_device *phydev)
 
 	debug("%s\n", __func__);
 	phytype = fdtdec_get_int(gd->fdt_blob, dev_of_offset(phydev->dev),
-				 "phy-type", -1);
+				 "xlnx,phy-type", -1);
 	if (phytype == XAE_PHY_TYPE_1000BASE_X)
 		phydev->flags |= XAE_PHY_TYPE_1000BASE_X;
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] net: phy: xilinx_phy: Read phytype using property xlnx, phy-type
  2018-03-28 14:36 [U-Boot] [PATCH] net: phy: xilinx_phy: Read phytype using property xlnx, phy-type Michal Simek
@ 2018-03-29  3:45 ` Joe Hershberger
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Hershberger @ 2018-03-29  3:45 UTC (permalink / raw)
  To: u-boot

On Wed, Mar 28, 2018 at 9:36 AM, Michal Simek <michal.simek@xilinx.com> wrote:
> From: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
>
> This patch reads phytype from property "xlnx,phy-type" instead
> od simply looking for "phy-type". This is to be inline with
> Linux and also fixes the issue of detecting it wrongly in
> u-boot.
>
> Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>

Acked-by: Joe Hershberger <joe.hershberger@ni.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-29  3:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28 14:36 [U-Boot] [PATCH] net: phy: xilinx_phy: Read phytype using property xlnx, phy-type Michal Simek
2018-03-29  3:45 ` Joe Hershberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.