Skip to contentSkip to conversation

net: dsa: loop: use new helper fixed_phy_register_100fd to simplify the code

PATCH Applied Heiner Kallweit 3 participants 3 messages Nov 8, 2025 – Nov 11, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: dsa: loop: use new helper fixed_phy_register_100fd to simplify the code

Use new helper fixed_phy_register_100fd to simplify the code.

---
 drivers/net/dsa/dsa_loop.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/net/dsa/dsa_loop.c +1 -6
index 650d93226..4a416f271 100644
@@ -441,11 +441,6 @@ static int __init dsa_loop_create_switch_mdiodev(void)
 
 static int __init dsa_loop_init(void)
 {
-	struct fixed_phy_status status = {
-		.link = 1,
-		.speed = SPEED_100,
-		.duplex = DUPLEX_FULL,
-	};
 	unsigned int i;
 	int ret;
 
@@ -454,7 +449,7 @@ static int __init dsa_loop_init(void)
 		return ret;
 
 	for (i = 0; i < NUM_FIXED_PHYS; i++)
-		phydevs[i] = fixed_phy_register(&status, NULL);
+		phydevs[i] = fixed_phy_register_100fd();
 
 	ret = mdio_driver_register(&dsa_loop_drv);
 	if (ret) {
Signature · 1 line
2.51.2
#2 lore raw
In reply to Heiner Kallweit
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 6 lines · On Sat, 8 Nov 2025 22:59:51 +0100 you wrote:

Use new helper fixed_phy_register_100fd to simplify the code.

---
 drivers/net/dsa/dsa_loop.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

Here is the summary with links:
- [net-next] net: dsa: loop: use new helper fixed_phy_register_100fd to simplify the code

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

You are awesome, thank you!

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