]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: phy: xilinx_phy: Get rid of using property xlnx, phy-type
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Tue, 10 Oct 2023 03:04:36 +0000 (08:34 +0530)
committerMichal Simek <michal.simek@amd.com>
Tue, 10 Oct 2023 12:57:29 +0000 (14:57 +0200)
As the xlnx,phy-type device tree property is deprecated and phy-mode
is being used, so removing the code references of xlnx,phy-type.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20231010030436.11854-1-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/net/phy/xilinx_phy.c

index 1df639d6f4438f9d7927b2f2f10eb28fc91a7997..c07c780193f483aeaf96d9a80d2c95ed8b26c6e4 100644 (file)
@@ -99,7 +99,6 @@ static int xilinxphy_startup(struct phy_device *phydev)
 
 static int xilinxphy_of_init(struct phy_device *phydev)
 {
-       u32 phytype;
        ofnode node;
 
        debug("%s\n", __func__);
@@ -107,10 +106,6 @@ static int xilinxphy_of_init(struct phy_device *phydev)
        if (!ofnode_valid(node))
                return -EINVAL;
 
-       phytype = ofnode_read_u32_default(node, "xlnx,phy-type", -1);
-       if (phytype == XAE_PHY_TYPE_1000BASE_X)
-               phydev->flags |= XAE_PHY_TYPE_1000BASE_X;
-
        return 0;
 }