netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/7] Add of_get_available_child_by_name()
@ 2025-02-05 12:42 Biju Das
  2025-02-05 12:42 ` [PATCH net-next v2 1/7] of: base: " Biju Das
                   ` (7 more replies)
  0 siblings, 8 replies; 18+ messages in thread
From: Biju Das @ 2025-02-05 12:42 UTC (permalink / raw)
  To: Rob Herring, Saravana Kannan, Matthias Brugger, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Andrew Lunn,
	AngeloGioacchino Del Regno
  Cc: Biju Das, devicetree, linux-arm-kernel, netdev,
	Geert Uytterhoeven, Prabhakar Mahadev Lad, Biju Das,
	linux-renesas-soc

There are lot of net drivers using of_get_child_by_name() followed by
of_device_is_available() to find the available child node by name for a
given parent. Provide a helper for these users to simplify the code.

v1->v2:
 * Make it as a series as per [1] to cover the dependency.
 * Added Rb tag from Rob for patch#1 and this patch can be merged through
   net as it is the main user.
 * Updated all the patches with patch suffix net-next
 * Dropped _free() usage.
 
[1]
https://lore.kernel.org/all/CAL_JsqLo4uSGYMcLXN=0iSUMHdW8RaGCY+o8ThQHq3_eUTV9wQ@mail.gmail.com/

 
Biju Das (7):
  of: base: Add of_get_available_child_by_name()
  net: dsa: rzn1_a5psw: Use of_get_available_child_by_name()
  net: dsa: sja1105: Use of_get_available_child_by_name()
  net: ethernet: mtk-star-emac: Use of_get_available_child_by_name()
  net: ethernet: mtk_eth_soc: Use of_get_available_child_by_name()
  net: ethernet: actions: Use of_get_available_child_by_name()
  net: ibm: emac: Use of_get_available_child_by_name()

 drivers/net/dsa/rzn1_a5psw.c                  |  8 +++---
 drivers/net/dsa/sja1105/sja1105_mdio.c        |  6 +----
 drivers/net/ethernet/actions/owl-emac.c       |  7 +----
 drivers/net/ethernet/ibm/emac/core.c          |  7 +----
 drivers/net/ethernet/mediatek/mtk_eth_soc.c   |  7 +----
 drivers/net/ethernet/mediatek/mtk_star_emac.c |  7 +----
 drivers/of/base.c                             | 27 +++++++++++++++++++
 include/linux/of.h                            |  9 +++++++
 8 files changed, 44 insertions(+), 34 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-02-07 17:43 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-05 12:42 [PATCH net-next v2 0/7] Add of_get_available_child_by_name() Biju Das
2025-02-05 12:42 ` [PATCH net-next v2 1/7] of: base: " Biju Das
2025-02-07  9:45   ` Simon Horman
2025-02-05 12:42 ` [PATCH net-next v2 2/7] net: dsa: rzn1_a5psw: Use of_get_available_child_by_name() Biju Das
2025-02-07  9:47   ` Simon Horman
2025-02-07 17:41   ` Vladimir Oltean
2025-02-05 12:42 ` [PATCH net-next v2 3/7] net: dsa: sja1105: " Biju Das
2025-02-07  9:47   ` Simon Horman
2025-02-07 17:43   ` Vladimir Oltean
2025-02-05 12:42 ` [PATCH net-next v2 4/7] net: ethernet: mtk-star-emac: " Biju Das
2025-02-07  9:51   ` Simon Horman
2025-02-05 12:42 ` [PATCH net-next v2 5/7] net: ethernet: mtk_eth_soc: " Biju Das
2025-02-07  9:52   ` Simon Horman
2025-02-05 12:42 ` [PATCH net-next v2 6/7] net: ethernet: actions: " Biju Das
2025-02-07  9:53   ` Simon Horman
2025-02-05 12:42 ` [PATCH net-next v2 7/7] net: ibm: emac: " Biju Das
2025-02-07  9:53   ` Simon Horman
2025-02-07 13:50 ` [PATCH net-next v2 0/7] Add of_get_available_child_by_name() 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).