Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next] net: dsa: loop: use new helper fixed_phy_register_100fd to simplify the code
@ 2025-11-08 21:59 Heiner Kallweit
  2025-11-10 11:27 ` Vladimir Oltean
  2025-11-11  2:30 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Heiner Kallweit @ 2025-11-08 21:59 UTC (permalink / raw)
  To: Vladimir Oltean, Andrew Lunn, Paolo Abeni, Eric Dumazet,
	David Miller, Jakub Kicinski
  Cc: netdev@vger.kernel.org

Use new helper fixed_phy_register_100fd to simplify the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/net/dsa/dsa_loop.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/net/dsa/dsa_loop.c b/drivers/net/dsa/dsa_loop.c
index 650d93226..4a416f271 100644
--- a/drivers/net/dsa/dsa_loop.c
+++ b/drivers/net/dsa/dsa_loop.c
@@ -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) {
-- 
2.51.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: dsa: loop: use new helper fixed_phy_register_100fd to simplify the code
  2025-11-08 21:59 [PATCH net-next] net: dsa: loop: use new helper fixed_phy_register_100fd to simplify the code Heiner Kallweit
@ 2025-11-10 11:27 ` Vladimir Oltean
  2025-11-11  2:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Vladimir Oltean @ 2025-11-10 11:27 UTC (permalink / raw)
  To: Heiner Kallweit
  Cc: Andrew Lunn, Paolo Abeni, Eric Dumazet, David Miller,
	Jakub Kicinski, netdev@vger.kernel.org

On Sat, Nov 08, 2025 at 10:59:51PM +0100, Heiner Kallweit wrote:
> Use new helper fixed_phy_register_100fd to simplify the code.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---

Reviewed-by: Vladimir Oltean <olteanv@gmail.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: dsa: loop: use new helper fixed_phy_register_100fd to simplify the code
  2025-11-08 21:59 [PATCH net-next] net: dsa: loop: use new helper fixed_phy_register_100fd to simplify the code Heiner Kallweit
  2025-11-10 11:27 ` Vladimir Oltean
@ 2025-11-11  2:30 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-11-11  2:30 UTC (permalink / raw)
  To: Heiner Kallweit; +Cc: olteanv, andrew, pabeni, edumazet, davem, kuba, netdev

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sat, 8 Nov 2025 22:59:51 +0100 you wrote:
> Use new helper fixed_phy_register_100fd to simplify the code.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-11  2:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-08 21:59 [PATCH net-next] net: dsa: loop: use new helper fixed_phy_register_100fd to simplify the code Heiner Kallweit
2025-11-10 11:27 ` Vladimir Oltean
2025-11-11  2:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox