devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/9] of: property: add of_graph_get_next_port/port_endpoint()
@ 2024-09-25 23:59 Kuninori Morimoto
  2024-09-26  0:00 ` [PATCH v6 1/9] of: property: add of_graph_get_next_port() Kuninori Morimoto
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Kuninori Morimoto @ 2024-09-25 23:59 UTC (permalink / raw)
  To: Daniel Vetter, David Airlie, Helge Deller, Jaroslav Kysela,
	Laurent Pinchart, Liam Girdwood, Maarten Lankhorst, Mark Brown,
	Mauro Carvalho Chehab, Maxime Ripard, Michal Simek, Rob Herring,
	Saravana Kannan, Takashi Iwai, Thomas Zimmermann, Tomi Valkeinen,
	devicetree, dri-devel, linux-arm-kernel, linux-fbdev, linux-media,
	linux-omap, linux-sound, Tomi Valkeinen, Sakari Ailus


Hi Rob, Saravana, Tomi, Laurent, Sakari, Mark

This is v6 patch-set

Current Of-graph has "endpoint base" for loop, but doesn't have
"port base" loop. "endpoint base" loop only is not enough.
This patch-set add new "port base" for loop, and use it.

Unfortunately, new helper function need to call of_node_get()
if dts doesn't have "ports" node, so we can't replace existing
loop by new helper, because it is using "const".

I noticed that some developer posted the patch to ALSA ML and
its and [5/9][6/9] patch will conflict. I think it is better to
repost these to ALSA ML *after* main patches (= [1/9][2/9]) were
included to linus/master tree (?). (Mark, can you agree ?)
So, [5/9][6/9] wants "review" only here.

v5 -> v6
	- based on latest linus/master branch
	- [9/9]: fixed compile warrning

v4 -> v5
	- tidyup comments
	- [8/9]: parent NULL check was removed
	- [9/9]: use for_each_of_graph_port()

v3 -> v4
	- new for_each loop includes __free()
	 - comment indicates to use return_ptr() or no_free_ptr() if
	   it need to continue to use node
	 - each driver based on it
	- care "prev" leak on of_graph_get_next_ports()
	- of_graph_get_next_port_endpoint() indicates WARN() if port
	  has non-endpoint node
	- tidyup each git-log

v2 -> v3
	- return NULL if it it doesn't have ports / port
	- add visible comment on of_graph_get_next_ports()

v1 -> v2
	- add each Reviewed-by / Acked-by
	- tidyup/update Kernel Docs
	- use prev as parameter
	- update git-log explanation
	- remove extra changes


Kuninori Morimoto (9):
  of: property: add of_graph_get_next_port()
  of: property: add of_graph_get_next_port_endpoint()
  ASoC: test-component: use new of_graph functions
  ASoC: rcar_snd: use new of_graph functions
  ASoC: audio-graph-card: use new of_graph functions
  ASoC: audio-graph-card2: use new of_graph functions
  gpu: drm: omapdrm: use new of_graph functions
  fbdev: omapfb: use new of_graph functions
  media: xilinx-tpg: use new of_graph functions

 drivers/gpu/drm/omapdrm/dss/dpi.c             |   3 +-
 drivers/gpu/drm/omapdrm/dss/sdi.c             |   3 +-
 drivers/media/platform/xilinx/xilinx-tpg.c    |  14 +-
 drivers/of/property.c                         | 154 ++++++++++++++++++
 drivers/video/fbdev/omap2/omapfb/dss/dpi.c    |   3 +-
 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c |  66 --------
 drivers/video/fbdev/omap2/omapfb/dss/dss.c    |  20 +--
 drivers/video/fbdev/omap2/omapfb/dss/sdi.c    |   3 +-
 include/linux/of_graph.h                      |  71 ++++++++
 include/video/omapfb_dss.h                    |   8 -
 sound/soc/generic/audio-graph-card.c          |   2 +-
 sound/soc/generic/audio-graph-card2.c         | 104 ++++++------
 sound/soc/generic/test-component.c            |   3 +-
 sound/soc/sh/rcar/core.c                      |  21 +--
 14 files changed, 302 insertions(+), 173 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-10-08 14:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 23:59 [PATCH v6 0/9] of: property: add of_graph_get_next_port/port_endpoint() Kuninori Morimoto
2024-09-26  0:00 ` [PATCH v6 1/9] of: property: add of_graph_get_next_port() Kuninori Morimoto
2024-10-08 14:18   ` Rob Herring
2024-09-26  0:00 ` [PATCH v6 2/9] of: property: add of_graph_get_next_port_endpoint() Kuninori Morimoto
2024-09-26  0:00 ` [PATCH v6 3/9] ASoC: test-component: use new of_graph functions Kuninori Morimoto
2024-09-26  0:00 ` [PATCH v6 4/9] ASoC: rcar_snd: " Kuninori Morimoto
2024-09-26  0:00 ` [PATCH v6 5/9] ASoC: audio-graph-card: " Kuninori Morimoto
2024-09-26  0:00 ` [PATCH v6 6/9] ASoC: audio-graph-card2: " Kuninori Morimoto
2024-09-26  0:00 ` [PATCH v6 7/9] gpu: drm: omapdrm: " Kuninori Morimoto
2024-09-26  0:00 ` [PATCH v6 8/9] fbdev: omapfb: " Kuninori Morimoto
2024-09-26  0:01 ` [PATCH v6 9/9] media: xilinx-tpg: " Kuninori Morimoto

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).