All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] of: add of_property_alloc/free() and of_node_alloc/free()
@ 2022-05-04 15:40 ` Clément Léger
  0 siblings, 0 replies; 32+ messages in thread
From: Clément Léger @ 2022-05-04 15:40 UTC (permalink / raw)
  To: Michael Ellerman, Benjamin Herrenschmidt, Paul Mackerras,
	Rob Herring, Frank Rowand, Nathan Lynch, Laurent Dufour,
	Daniel Henrique Barboza, David Gibson, Andrew Morton,
	David Hildenbrand, Ohhoon Kwon, Aneesh Kumar K.V, YueHaibing
  Cc: Clément Léger, linuxppc-dev, linux-kernel, devicetree,
	Allan Nielsen, Horatiu Vultur, Steen Hegelund, Thomas Petazzoni

In order to be able to create new nodes and properties dynamically from
drivers, add of_property_alloc/free() and of_node_alloc/free(). These
functions can be used to create new nodes and properties flagged with
OF_DYNAMIC and to free them.

Some powerpc code was already doing such operations and thus, these
functions have been used to replace the manual creation of nodes and
properties.

Clément Léger (3):
  of: dynamic: add of_property_alloc() and of_property_free()
  of: dynamic: add of_node_alloc() and of_node_free()
  powerpc/pseries: use of_property_*() and of_node_*() functions

 arch/powerpc/platforms/pseries/dlpar.c        |  51 +-----
 .../platforms/pseries/hotplug-memory.c        |  27 +--
 arch/powerpc/platforms/pseries/reconfig.c     |  44 ++---
 drivers/of/dynamic.c                          | 160 +++++++++++++-----
 include/linux/of.h                            |  25 +++
 5 files changed, 166 insertions(+), 141 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-06-02 18:08 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04 15:40 [PATCH 0/3] of: add of_property_alloc/free() and of_node_alloc/free() Clément Léger
2022-05-04 15:40 ` Clément Léger
2022-05-04 15:40 ` [PATCH 1/3] of: dynamic: add of_property_alloc() and of_property_free() Clément Léger
2022-05-04 15:40   ` Clément Léger
2022-05-05  7:30   ` Christophe Leroy
2022-05-05  9:47     ` Clément Léger
2022-05-05  9:47       ` Clément Léger
2022-05-05 17:37     ` Rob Herring
2022-05-05 17:37       ` Rob Herring
2022-05-06  7:43       ` Clément Léger
2022-05-06  7:43         ` Clément Léger
2022-05-05 19:37   ` Rob Herring
2022-05-05 19:37     ` Rob Herring
2022-05-06  7:49     ` Clément Léger
2022-05-06  7:49       ` Clément Léger
2022-06-01 22:30     ` Tyrel Datwyler
2022-06-01 22:30       ` Tyrel Datwyler
2022-06-02 14:06       ` Rob Herring
2022-06-02 14:06         ` Rob Herring
2022-06-02 18:07         ` Tyrel Datwyler
2022-06-02 18:07           ` Tyrel Datwyler
2022-05-04 15:40 ` [PATCH 2/3] of: dynamic: add of_node_alloc() and of_node_free() Clément Léger
2022-05-04 15:40   ` Clément Léger
2022-05-05  7:32   ` Christophe Leroy
2022-05-05 19:43   ` Rob Herring
2022-05-05 19:43     ` Rob Herring
2022-05-06 10:43     ` Clément Léger
2022-05-06 10:43       ` Clément Léger
2022-05-09 16:55       ` Rob Herring
2022-05-09 16:55         ` Rob Herring
2022-05-04 15:40 ` [PATCH 3/3] powerpc/pseries: use of_property_*() and of_node_*() functions Clément Léger
2022-05-04 15:40   ` Clément Léger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.