Skip to contentSkip to conversation

net: phy: fixed_phy: remove not needed initialization of phy_device members

PATCH Applied Heiner Kallweit 2 participants 2 messages Nov 19, 2025 – Nov 21, 2025

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 net: phy: fixed_phy: remove not needed initialization of phy_device members

All these members are populated by the phylib state machine once the PHY has been started, based on the fixed autoneg results.

---
 drivers/net/phy/fixed_phy.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/net/phy/fixed_phy.c +0 -7
index 1ad77f542..cb548740f 100644
@@ -172,13 +172,6 @@ struct phy_device *fixed_phy_register(const struct fixed_phy_status *status,
 		return ERR_PTR(-EINVAL);
 	}
 
-	/* propagate the fixed link values to struct phy_device */
-	phy->link = 1;
-	phy->speed = status->speed;
-	phy->duplex = status->duplex;
-	phy->pause = status->pause;
-	phy->asym_pause = status->asym_pause;
-
 	of_node_get(np);
 	phy->mdio.dev.of_node = np;
 	phy->is_pseudo_fixed_link = true;
Signature · 1 line
2.52.0
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 7 lines · On Wed, 19 Nov 2025 07:55:47 +0100 you wrote:

All these members are populated by the phylib state machine once the PHY has been started, based on the fixed autoneg results.

---
 drivers/net/phy/fixed_phy.c | 7 -------
 1 file changed, 7 deletions(-)

Here is the summary with links:
- [net-next] net: phy: fixed_phy: remove not needed initialization of phy_device members

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

You are awesome, thank you!

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