net: phy: xilinx_phy: Get rid of using property xlnx, phy-type
Subsystems (3)
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
@@ -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
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.
Signed-off-by Venkatesh Yadav Abbarapu <[email protected]>--- drivers/net/phy/xilinx_phy.c | 4 ---- 1 file changed, 4 deletions(-)drivers/net/phy/xilinx_phy.c +0
-0
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
Michal Simek
maintainerRe: [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.
Signed-off-by Venkatesh Yadav Abbarapu <[email protected]>---
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@@ -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