]> git.sur5r.net Git - u-boot/commitdiff
net: phy: xilinx_phy: Read phytype using property xlnx,phy-type
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Fri, 12 Jan 2018 07:14:54 +0000 (12:44 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 9 Apr 2018 10:14:51 +0000 (12:14 +0200)
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>
drivers/net/phy/xilinx_phy.c

index 3f80f0495e8d54ff6b74e5e3995e343595eaa9f7..7142a99ce580bbc0861b40ec86d24a52c247752d 100644 (file)
@@ -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;