Skip to contentSkip to conversation

net: ethernet: ave: Remove duplicate phy_resume() calls

PATCH Applied Kunihiko Hayashi 2 participants 2 messages Oct 24, 2022 – Oct 27, 2022

Subsystems (3)
lore
Share & tools
lore

Kunihiko Hayashi

author maintainer
#0 lore raw

PATCH 1/1 net: ethernet: ave: Remove duplicate phy_resume() calls

ave_open() in ave_resume() executes __phy_resume() via phy_start(), so no need to call phy_resume() explicitly. Remove it.

---
 drivers/net/ethernet/socionext/sni_ave.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/net/ethernet/socionext/sni_ave.c +0 -6
index d2c6a5dfdc0e..c6a6c9ed5365 100644
@@ -1766,12 +1766,6 @@ static int ave_resume(struct device *dev)
 	wol.wolopts = priv->wolopts;
 	__ave_ethtool_set_wol(ndev, &wol);
 
-	if (ndev->phydev) {
-		ret = phy_resume(ndev->phydev);
-		if (ret)
-			return ret;
-	}
-
 	if (netif_running(ndev)) {
 		ret = ave_open(ndev);
 		netif_device_attach(ndev);
Signature · 1 line
2.25.1
#1 lore raw
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Quoted 7 lines · On Mon, 24 Oct 2022 16:23:14 +0900 you wrote:

ave_open() in ave_resume() executes __phy_resume() via phy_start(), so no need to call phy_resume() explicitly. Remove it.

---
 drivers/net/ethernet/socionext/sni_ave.c | 6 ------
 1 file changed, 6 deletions(-)

Here is the summary with links:
- [net-next] net: ethernet: ave: Remove duplicate phy_resume() calls

    https://git.kernel.org/netdev/net-next/c/3a6573b7a218

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html