Skip to contentSkip to conversation

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

PATCH Applied Venkatesh Yadav Abbarapu 2 participants 2 messages Oct 10, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

---
Changes in v2:
- Removed phytype variable.

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

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

Quoted 24 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.

---
Changes in v2:
- Removed phytype variable.

---
  drivers/net/phy/xilinx_phy.c | 5 -----
  1 file changed, 5 deletions(-)
drivers/net/phy/xilinx_phy.c +0 -1
index 1df639d6f4..c07c780193 100644
@@ -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__);

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

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

Applied.
M