linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2] net: sparx5/lan969x: populate netdev of_node
@ 2025-11-10 12:42 Robert Marko
  2025-11-12  2:20 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Marko @ 2025-11-10 12:42 UTC (permalink / raw)
  To: andrew+netdev, davem, edumazet, kuba, pabeni, Steen.Hegelund,
	daniel.machon, UNGLinuxDriver, horatiu.vultur, rmk+kernel, netdev,
	linux-arm-kernel, linux-kernel
  Cc: luka.perkov, Robert Marko

Populate of_node for the port netdevs, to make the individual ports
of_nodes available in sysfs.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
Changes in v2:
* Per Daniels suggestion, set it directly in sparx5_create_port()
instead of doing it in the dedicated netdev registration function.

 drivers/net/ethernet/microchip/sparx5/sparx5_main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_main.c b/drivers/net/ethernet/microchip/sparx5/sparx5_main.c
index 40b1bfc600a7..582145713cfd 100644
--- a/drivers/net/ethernet/microchip/sparx5/sparx5_main.c
+++ b/drivers/net/ethernet/microchip/sparx5/sparx5_main.c
@@ -395,6 +395,8 @@ static int sparx5_create_port(struct sparx5 *sparx5,
 
 	spx5_port->phylink = phylink;
 
+	spx5_port->ndev->dev.of_node = spx5_port->of_node;
+
 	return 0;
 }
 
-- 
2.51.1



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

* Re: [PATCH net-next v2] net: sparx5/lan969x: populate netdev of_node
  2025-11-10 12:42 [PATCH net-next v2] net: sparx5/lan969x: populate netdev of_node Robert Marko
@ 2025-11-12  2:20 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-11-12  2:20 UTC (permalink / raw)
  To: Robert Marko
  Cc: andrew+netdev, davem, edumazet, kuba, pabeni, Steen.Hegelund,
	daniel.machon, UNGLinuxDriver, horatiu.vultur, rmk+kernel, netdev,
	linux-arm-kernel, linux-kernel, luka.perkov

Hello:

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

On Mon, 10 Nov 2025 13:42:53 +0100 you wrote:
> Populate of_node for the port netdevs, to make the individual ports
> of_nodes available in sysfs.
> 
> Signed-off-by: Robert Marko <robert.marko@sartura.hr>
> ---
> Changes in v2:
> * Per Daniels suggestion, set it directly in sparx5_create_port()
> instead of doing it in the dedicated netdev registration function.
> 
> [...]

Here is the summary with links:
  - [net-next,v2] net: sparx5/lan969x: populate netdev of_node
    https://git.kernel.org/netdev/net-next/c/fc6aa0e470e0

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] 2+ messages in thread

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-10 12:42 [PATCH net-next v2] net: sparx5/lan969x: populate netdev of_node Robert Marko
2025-11-12  2:20 ` 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;
as well as URLs for NNTP newsgroup(s).