Skip to contentSkip to conversation

net: phy: fixed_phy: fix missing initialization of fixed phy link

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: fix missing initialization of fixed phy link

Original change remove the link initialization from the passed struct fixed_phy_status, but missed to add it in all places in the code.

Fixes 9f07af1d2742 ("net: phy: fixed_phy: initialize the link status as up")
---
 drivers/net/phy/fixed_phy.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/fixed_phy.c +1 -0
index cb548740f..50684271f 100644
@@ -124,6 +124,7 @@ static int __fixed_phy_add(int phy_addr,
 
 	fp->addr = phy_addr;
 	fp->status = *status;
+	fp->status.link = true;
 
 	list_add_tail(&fp->node, &fmb_phys);
 
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 8 lines · On Wed, 19 Nov 2025 08:05:45 +0100 you wrote:

Original change remove the link initialization from the passed struct fixed_phy_status, but missed to add it in all places in the code.

Fixes 9f07af1d2742 ("net: phy: fixed_phy: initialize the link status as up")
---
 drivers/net/phy/fixed_phy.c | 1 +
 1 file changed, 1 insertion(+)

Here is the summary with links:
- [net-next] net: phy: fixed_phy: fix missing initialization of fixed phy link

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

You are awesome, thank you!

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