Skip to contentSkip to conversation

net: phy: xilinx_phy: Get rid of using property xlnx, phy-type

PATCH Applied Venkatesh Yadav Abbarapu 2 participants 3 messages Oct 5, 2023 – Oct 9, 2023

Subsystems (3)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: phy: xilinx_phy: Get rid of using property xlnx, phy-type

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.

---
 drivers/net/phy/xilinx_phy.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/net/phy/xilinx_phy.c +0 -4
index 1df639d6f4..50f1611ad5 100644
@@ -107,10 +107,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;
 }
 
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw

Re: [PATCH] net: phy: xilinx_phy: Get rid of using property xlnx,phy-type

Quoted 13 lines · Venkatesh Yadav Abbarapu

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.

---
  drivers/net/phy/xilinx_phy.c | 4 ----
  1 file changed, 4 deletions(-)
drivers/net/phy/xilinx_phy.c +0 -0
index 1df639d6f4..50f1611ad5 100644

drivers/net/phy/xilinx_phy.c static int xilinxphy_of_init(struct phy_device *phydev) · line 112

Quoted 10 lines
drivers/net/phy/xilinx_phy.c +0 -4
@@ -107,10 +107,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;
  }
 

Applied.
M

maintainer
#2 lore raw

Re: [PATCH] net: phy: xilinx_phy: Get rid of using property xlnx,phy-type

Quoted 11 lines · Michal Simek
Quoted 8 lines · Venkatesh Yadav Abbarapu

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.

---
  drivers/net/phy/xilinx_phy.c | 4 ----

  1 file changed, 4 deletions(-)
Quoted 16 lines

drivers/net/phy/xilinx_phy.c static int xilinxphy_of_init(struct phy_device *phydev) · line 110

Quoted 13 lines
drivers/net/phy/xilinx_phy.c +0 -4
index 1df639d6f4..50f1611ad5 100644
@@ -107,10 +107,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;
   }

Applied.
M

Actually no. I will remove this patch from my queue. You also need to remove phytype variable. That's why please send v2 on this.

M