Skip to contentSkip to conversation

net: stmmac: dwmac-rk: rename phy_power_on to avoid conflict

PATCH In review Lizhe 2 participants 2 messages Dec 16, 2025 – Dec 19, 2025

Subsystems (5)
lore
Share & tools
lore

Lizhe

author
#0 lore raw

PATCH v2 1/2 net: stmmac: dwmac-rk: rename phy_power_on to avoid conflict

Rename local function 'phy_power_on' to 'rk_phy_power_set' to avoid conflict with PHY subsystem function. Keep original error handling.

---
 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +3 -3
index 0a95f54e725e..2f5a65c235aa 100644
@@ -1498,7 +1498,7 @@ static int gmac_clk_enable(struct rk_priv_data *bsp_priv, bool enable)
 	return 0;
 }
 
-static int phy_power_on(struct rk_priv_data *bsp_priv, bool enable)
+static int rk_phy_power_set(struct rk_priv_data *bsp_priv, bool enable)
 {
 	struct regulator *ldo = bsp_priv->regulator;
 	struct device *dev = bsp_priv->dev;
@@ -1692,7 +1692,7 @@ static int rk_gmac_powerup(struct rk_priv_data *bsp_priv)
 		dev_err(dev, "NO interface defined!\n");
 	}
 
-	ret = phy_power_on(bsp_priv, true);
+	ret = rk_phy_power_set(bsp_priv, true);
 	if (ret) {
 		gmac_clk_enable(bsp_priv, false);
 		return ret;
@@ -1713,7 +1713,7 @@ static void rk_gmac_powerdown(struct rk_priv_data *gmac)
 
 	pm_runtime_put_sync(gmac->dev);
 
-	phy_power_on(gmac, false);
+	rk_phy_power_set(gmac, false);
 	gmac_clk_enable(gmac, false);
 }
 
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 4 lines · Lizhe

Rename local function 'phy_power_on' to 'rk_phy_power_set' to avoid conflict with PHY subsystem function. Keep original error handling.

## Form letter - net-next-closed

The net-next tree is closed for new drivers, features, code refactoring and optimizations due to the merge window and the winter break. We are currently accepting bug fixes only.

Please repost when net-next reopens after Jan 2nd.

RFC patches sent for review only are obviously welcome at any time.