net: phy: fixed_phy: remove not needed initialization of phy_device members
Subsystems (3)
Heiner Kallweit
maintainerPATCH 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.
Signed-off-by Heiner Kallweit <[email protected]>
--- drivers/net/phy/fixed_phy.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/net/phy/fixed_phy.c +0 -7
@@ -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
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.
Signed-off-by Heiner Kallweit <[email protected]>--- 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