Skip to contentSkip to conversation

net: stmmac: dwmac-rk:return actual error from phy_power_on

PATCH In review Lizhe 1 participant 1 message Dec 16, 2025

Subsystems (5)
lore
Share & tools
lore

Lizhe

author
#0 lore raw

PATCH v2 2/2 net: stmmac: dwmac-rk:return actual error from phy_power_on

The function phy_power_on currently always returns 0, even when regulator operations fail. This patch modifies it to return the actual error code from regulator_enable/disable operations

---
 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +1 -1
index 2f5a65c235aa..fa989cb96714 100644
@@ -1514,7 +1514,7 @@ static int rk_phy_power_set(struct rk_priv_data *bsp_priv, bool enable)
 			dev_err(dev, "fail to disable phy-supply\n");
 	}
 
-	return 0;
+	return ret;
 }
 
 static struct rk_priv_data *rk_gmac_setup(struct platform_device *pdev,
Signature · 1 line
2.17.1