All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v3 0/4] drm: Cleanup probe function for component based masters.
@ 2015-10-19 15:07 ` Liviu Dudau
  0 siblings, 0 replies; 64+ messages in thread
From: Liviu Dudau @ 2015-10-19 15:07 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter, Philipp Zabel, Mark Yao,
	Heiko Stuebner, Russell King
  Cc: linux-rockchip, LAKML, dri-devel, LKML

Changelog:
v3: Removed the call to dma_set_coherent_mask() from the generic
    drm_of_component_probe(). Also changes to shorten lines over 80 chars long.
v2: Rebased the patchset on top of drm-next rather than Linus' latest -rc

A few drivers in drivers/gpu/drm are component-enabled and use quite similar
code sequences to probe for their encoder slaves at the remote end of the ports.
Move the code into a "generic" function and remove it from the drivers.

The end results is that drivers get a reference count fix (imx), more thorough
error checking (imx again) plus a decrease in the overall count of LoC.

I'm looking for comments and testing of the patchset (only compile tested from my
end as I don't have access to all the devices touched by the changes). My main
interest is in finding out if -EINVAL is the correct code to return if
dev->of_node == NULL (handy now, as it is different from the other possible error
codes and used in armada to trigger old platform_data support. Also looking for
thoughts on the correctness of the patch and if it possible to co-opt more drivers
into using the function.

Best regards,
Liviu

Liviu Dudau (4):
  drm: Introduce generic probe function for component based masters.
  drm/imx: Convert the probe function to the generic drm_of_component_probe()
  drm/rockchip: Convert the probe function to the generic drm_of_component_probe()
  drm/armada: Convert the probe function to the generic drm_of_component_probe()

 drivers/gpu/drm/armada/armada_drv.c         | 73 ++++++++----------------
 drivers/gpu/drm/drm_of.c                    | 88 +++++++++++++++++++++++++++++
 drivers/gpu/drm/imx/imx-drm-core.c          | 55 ++----------------
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 81 ++------------------------
 include/drm/drm_of.h                        | 13 +++++
 5 files changed, 133 insertions(+), 177 deletions(-)

-- 
2.6.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2015-11-10 10:09 UTC | newest]

Thread overview: 64+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-19 15:07 [RFC PATCH v3 0/4] drm: Cleanup probe function for component based masters Liviu Dudau
2015-10-19 15:07 ` Liviu Dudau
2015-10-19 15:07 ` Liviu Dudau
2015-10-19 15:07 ` [RFC PATCH v3 1/4] drm: Introduce generic " Liviu Dudau
2015-10-19 15:07   ` Liviu Dudau
2015-10-19 15:07   ` Liviu Dudau
2015-10-19 15:14   ` Russell King - ARM Linux
2015-10-19 15:14     ` Russell King - ARM Linux
2015-10-19 15:14     ` Russell King - ARM Linux
2015-10-20  9:45   ` Eric Anholt
2015-10-20  9:45     ` Eric Anholt
2015-10-20  9:45     ` Eric Anholt
2015-11-09  9:39   ` Mark yao
2015-11-09  9:39     ` Mark yao
2015-11-09 10:53     ` Liviu Dudau
2015-11-09 10:53       ` Liviu Dudau
2015-11-09 10:53       ` Liviu Dudau
     [not found]       ` <20151109105316.GD963-2JSQmVVBSi7ZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2015-11-09 11:20         ` Philipp Zabel
2015-11-09 11:20           ` Philipp Zabel
2015-11-09 11:20           ` Philipp Zabel
2015-11-09 11:43     ` Russell King - ARM Linux
2015-11-09 11:43       ` Russell King - ARM Linux
2015-11-09 11:43       ` Russell King - ARM Linux
2015-11-09 11:57       ` Liviu Dudau
2015-11-09 11:57         ` Liviu Dudau
2015-11-09 11:57         ` Liviu Dudau
2015-11-09 12:03         ` Russell King - ARM Linux
2015-11-09 12:03           ` Russell King - ARM Linux
2015-11-09 12:03           ` Russell King - ARM Linux
2015-11-09 12:07           ` Liviu Dudau
2015-11-09 12:07             ` Liviu Dudau
2015-11-09 12:07             ` Liviu Dudau
2015-11-09 19:49             ` Heiko Stuebner
2015-11-09 19:49               ` Heiko Stuebner
2015-11-09 19:49               ` Heiko Stuebner
2015-11-10  5:49               ` Mark yao
2015-11-10  8:53         ` Mark yao
2015-11-10 10:09           ` Liviu Dudau
2015-11-10 10:09             ` Liviu Dudau
2015-11-10 10:09             ` Liviu Dudau
2015-11-09 11:15   ` Russell King - ARM Linux
2015-11-09 11:15     ` Russell King - ARM Linux
2015-11-09 11:15     ` Russell King - ARM Linux
2015-10-19 15:07 ` [RFC PATCH v3 2/4] drm/imx: Convert the probe function to the generic drm_of_component_probe() Liviu Dudau
2015-10-19 15:07   ` Liviu Dudau
2015-10-19 15:07   ` Liviu Dudau
2015-10-19 15:15   ` Russell King - ARM Linux
2015-10-19 15:15     ` Russell King - ARM Linux
2015-10-19 15:15     ` Russell King - ARM Linux
2015-10-19 15:07 ` [RFC PATCH v3 3/4] drm/rockchip: " Liviu Dudau
2015-10-19 15:07   ` Liviu Dudau
2015-10-19 15:07   ` Liviu Dudau
2015-10-19 15:07 ` [RFC PATCH v3 4/4] drm/armada: " Liviu Dudau
2015-10-19 15:07   ` Liviu Dudau
2015-10-19 15:07   ` Liviu Dudau
2015-10-19 15:17   ` Russell King - ARM Linux
2015-10-19 15:17     ` Russell King - ARM Linux
2015-10-19 15:17     ` Russell King - ARM Linux
2015-10-19 15:23     ` Liviu Dudau
2015-10-19 15:23       ` Liviu Dudau
2015-10-19 15:23       ` Liviu Dudau
2015-10-19 22:07   ` kbuild test robot
2015-10-19 22:07     ` kbuild test robot
2015-10-19 22:07     ` kbuild test robot

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.