linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] of: replace of_graph_get_next_endpoint()
@ 2024-02-07  4:38 Kuninori Morimoto
  2024-02-07  4:38 ` [PATCH v2 1/4] gpu: drm: " Kuninori Morimoto
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2024-02-07  4:38 UTC (permalink / raw)
  To: Lad,  Prabhakar, "Uwe Kleine-König", Alain Volmat,
	Alexandre Belloni, Alexandre Torgue, Alexey Brodkin, Alim Akhtar,
	Andrzej Hajda, Broadcom internal kernel review list,
	Claudiu Beznea, Daniel Vetter, Dave Stevenson, David Airlie,
	Eugen Hristev, Florian Fainelli, Hans Verkuil, Helge Deller,
	Hugues Fruchet, Jacopo Mondi, Jessica Zhang, Krzysztof Kozlowski,
	Laurent Pinchart, Maarten Lankhorst, Mauro Carvalho Chehab,
	Maxime Coquelin, Maxime Ripard, Neil Armstrong, Nicolas Ferre,
	Sakari Ailus, Sam Ravnborg, Sylwester Nawrocki, Thomas Zimmermann,
	Tim Harvey, dri-devel, linux-arm-kernel, linux-fbdev, linux-media,
	linux-omap, linux-rpi-kernel, linux-samsung-soc, linux-stm32


Hi Rob

This is v2 of replace of_graph_get_next_endpoint()

We should get rid of or minimize of_graph_get_next_endpoint() in
its current form. In general, drivers should be asking for a specific 
port number because their function is fixed in the binding.

	https://lore.kernel.org/r/20240131184347.GA1906672-robh@kernel.org

This patch-set replace of_graph_get_next_endpoint() by
of_graph_get_endpoint_by_regs(). There are still next_endpoint()
after this patch-set, but it will be replaced by
for_each_endpoint_of_node() in next patch-set (A)

[*] this patch-set
[o] done

	[o] tidyup of_graph_get_endpoint_count()
	[*] replace endpoint func - use endpoint_by_regs()
(A)	[ ] replace endpoint func - use for_each()
	[ ] rename endpoint func to device_endpoint
	[ ] add new port function
	[ ] add new endpont function
	[ ] remove of_graph_get_next_device_endpoint()

v1 -> v2
	- add Reviewed-by from Launrent
	- use by_regs(xx, -1, -1) for some devices
	- add extra explain for drm_of_get_dsi_bus()
	- add FIXME and Link on adv7604.c
	- based on latest of branch

Kuninori Morimoto (4):
  gpu: drm: replace of_graph_get_next_endpoint()
  media: i2c: replace of_graph_get_next_endpoint()
  media: platform: replace of_graph_get_next_endpoint()
  video: fbdev: replace of_graph_get_next_endpoint()

 drivers/gpu/drm/drm_of.c                      |  4 +++-
 .../drm/panel/panel-raspberrypi-touchscreen.c |  2 +-
 drivers/gpu/drm/tiny/arcpgu.c                 |  2 +-
 drivers/media/i2c/adv7343.c                   |  2 +-
 drivers/media/i2c/adv7604.c                   |  4 ++--
 drivers/media/i2c/mt9p031.c                   |  2 +-
 drivers/media/i2c/mt9v032.c                   |  2 +-
 drivers/media/i2c/ov2659.c                    |  2 +-
 drivers/media/i2c/ov5645.c                    |  2 +-
 drivers/media/i2c/ov5647.c                    |  2 +-
 drivers/media/i2c/s5c73m3/s5c73m3-core.c      |  2 +-
 drivers/media/i2c/s5k5baf.c                   |  2 +-
 drivers/media/i2c/tc358743.c                  |  2 +-
 drivers/media/i2c/tda1997x.c                  |  2 +-
 drivers/media/i2c/tvp514x.c                   |  2 +-
 drivers/media/i2c/tvp7002.c                   |  2 +-
 drivers/media/platform/atmel/atmel-isi.c      |  4 ++--
 drivers/media/platform/intel/pxa_camera.c     |  2 +-
 .../platform/samsung/exynos4-is/fimc-is.c     |  2 +-
 .../platform/samsung/exynos4-is/mipi-csis.c   |  3 ++-
 drivers/media/platform/st/stm32/stm32-dcmi.c  |  4 ++--
 drivers/media/platform/ti/davinci/vpif.c      |  3 +--
 drivers/video/fbdev/omap2/omapfb/dss/dsi.c    |  3 ++-
 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c | 20 +------------------
 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c  |  3 ++-
 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c  |  3 ++-
 drivers/video/fbdev/omap2/omapfb/dss/venc.c   |  3 ++-
 drivers/video/fbdev/pxafb.c                   |  2 +-
 include/video/omapfb_dss.h                    |  3 ---
 29 files changed, 38 insertions(+), 53 deletions(-)

-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH v2 resend 0/4] of: replace of_graph_get_next_endpoint()
@ 2024-03-04  5:14 Kuninori Morimoto
  2024-03-04  5:16 ` [PATCH v2 2/4] media: i2c: " Kuninori Morimoto
  0 siblings, 1 reply; 6+ messages in thread
From: Kuninori Morimoto @ 2024-03-04  5:14 UTC (permalink / raw)
  To: Rob Herring, Lad Prabhakar, "Uwe Kleine-König",
	Alain Volmat, Alexandre Belloni, Alexandre Torgue, Alexey Brodkin,
	Alim Akhtar, Andrzej Hajda, Broadcom internal kernel review list,
	Claudiu Beznea, Daniel Vetter, Dave Stevenson, David Airlie,
	Eugen Hristev, Florian Fainelli, Hans Verkuil, Helge Deller,
	Hugues Fruchet, Jacopo Mondi, Jessica Zhang, Krzysztof Kozlowski,
	Laurent Pinchart, Maarten Lankhorst, Mauro Carvalho Chehab,
	Maxime Coquelin, Maxime Ripard, Neil Armstrong, Nicolas Ferre,
	Sakari Ailus, Sam Ravnborg, Sylwester Nawrocki, Thomas Zimmermann,
	Tim Harvey, dri-devel, linux-arm-kernel, linux-fbdev, linux-media,
	linux-omap, linux-rpi-kernel, linux-samsung-soc, linux-stm32


Hi Rob

This is resend v2 of replace of_graph_get_next_endpoint()

We should get rid of or minimize of_graph_get_next_endpoint() in
its current form. In general, drivers should be asking for a specific 
port number because their function is fixed in the binding.

	https://lore.kernel.org/r/20240131184347.GA1906672-robh@kernel.org

This patch-set replace of_graph_get_next_endpoint() by
of_graph_get_endpoint_by_regs(). There are still next_endpoint()
after this patch-set, but it will be replaced by
for_each_endpoint_of_node() in next patch-set (A)

[*] this patch-set
[o] done

	[o] tidyup of_graph_get_endpoint_count()
	[*] replace endpoint func - use endpoint_by_regs()
(A)	[ ] replace endpoint func - use for_each()
	[ ] rename endpoint func to device_endpoint
	[ ] add new port function
	[ ] add new endpont function
	[ ] remove of_graph_get_next_device_endpoint()

v1 -> v2
	- add Reviewed-by from Launrent
	- use by_regs(xx, -1, -1) for some devices
	- add extra explain for drm_of_get_dsi_bus()
	- add FIXME and Link on adv7604.c
	- based on latest of branch

Kuninori Morimoto (4):
  gpu: drm: replace of_graph_get_next_endpoint()
  media: i2c: replace of_graph_get_next_endpoint()
  media: platform: replace of_graph_get_next_endpoint()
  video: fbdev: replace of_graph_get_next_endpoint()

 drivers/gpu/drm/drm_of.c                      |  4 +++-
 .../drm/panel/panel-raspberrypi-touchscreen.c |  2 +-
 drivers/gpu/drm/tiny/arcpgu.c                 |  2 +-
 drivers/media/i2c/adv7343.c                   |  2 +-
 drivers/media/i2c/adv7604.c                   |  4 ++--
 drivers/media/i2c/mt9p031.c                   |  2 +-
 drivers/media/i2c/mt9v032.c                   |  2 +-
 drivers/media/i2c/ov2659.c                    |  2 +-
 drivers/media/i2c/ov5645.c                    |  2 +-
 drivers/media/i2c/ov5647.c                    |  2 +-
 drivers/media/i2c/s5c73m3/s5c73m3-core.c      |  2 +-
 drivers/media/i2c/s5k5baf.c                   |  2 +-
 drivers/media/i2c/tc358743.c                  |  2 +-
 drivers/media/i2c/tda1997x.c                  |  2 +-
 drivers/media/i2c/tvp514x.c                   |  2 +-
 drivers/media/i2c/tvp7002.c                   |  2 +-
 drivers/media/platform/atmel/atmel-isi.c      |  4 ++--
 drivers/media/platform/intel/pxa_camera.c     |  2 +-
 .../platform/samsung/exynos4-is/fimc-is.c     |  2 +-
 .../platform/samsung/exynos4-is/mipi-csis.c   |  3 ++-
 drivers/media/platform/st/stm32/stm32-dcmi.c  |  4 ++--
 drivers/media/platform/ti/davinci/vpif.c      |  3 +--
 drivers/video/fbdev/omap2/omapfb/dss/dsi.c    |  3 ++-
 drivers/video/fbdev/omap2/omapfb/dss/dss-of.c | 20 +------------------
 drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c  |  3 ++-
 drivers/video/fbdev/omap2/omapfb/dss/hdmi5.c  |  3 ++-
 drivers/video/fbdev/omap2/omapfb/dss/venc.c   |  3 ++-
 drivers/video/fbdev/pxafb.c                   |  2 +-
 include/video/omapfb_dss.h                    |  3 ---
 29 files changed, 38 insertions(+), 53 deletions(-)

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2024-03-04  5:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-07  4:38 [PATCH v2 0/4] of: replace of_graph_get_next_endpoint() Kuninori Morimoto
2024-02-07  4:38 ` [PATCH v2 1/4] gpu: drm: " Kuninori Morimoto
2024-02-07  4:39 ` [PATCH v2 2/4] media: i2c: " Kuninori Morimoto
2024-02-07  4:39 ` [PATCH v2 3/4] media: platform: " Kuninori Morimoto
2024-02-07  4:39 ` [PATCH v2 4/4] video: fbdev: " Kuninori Morimoto
  -- strict thread matches above, loose matches on Subject: below --
2024-03-04  5:14 [PATCH v2 resend 0/4] of: " Kuninori Morimoto
2024-03-04  5:16 ` [PATCH v2 2/4] media: i2c: " 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).