linux/drivers/gpu/drm/armada
Thierry Reding 10a2310265 drm: Introduce drm_fb_helper_prepare()
To implement hotplug detection in a race-free manner, drivers must call
drm_kms_helper_poll_init() before hotplug events can be triggered. Such
events can be triggered right after any of the encoders or connectors
are initialized. At the same time, if the drm_fb_helper_hotplug_event()
helper is used by a driver, then the poll helper requires some parts of
the FB helper to be initialized to prevent a crash.

At the same time, drm_fb_helper_init() requires information that is not
necessarily available at such an early stage (number of CRTCs and
connectors), so it cannot be used yet.

Add a new helper, drm_fb_helper_prepare(), that initializes the bare
minimum needed to allow drm_kms_helper_poll_init() to execute and any
subsequent hotplug events to be processed properly.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-07-08 11:31:28 +10:00
..
armada_510.c
armada_crtc.c DRM: armada: fix corruption while loading cursors 2014-04-08 10:51:03 +10:00
armada_crtc.h
armada_debugfs.c DRM: Armada: convert to use simple_open() 2013-11-06 12:02:36 +10:00
armada_drm.h DRM: Armada: implement lastclose() for fbhelper 2013-12-10 20:24:02 +00:00
armada_drv.c drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE() 2014-06-10 09:36:17 +10:00
armada_fb.c
armada_fb.h
armada_fbdev.c drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
armada_gem.c drm/armada: use shmem helpers if possible 2014-05-27 15:51:35 +10:00
armada_gem.h
armada_hw.h
armada_ioctlP.h
armada_output.c drm: add register and unregister functions for connectors 2014-06-19 08:55:28 +02:00
armada_output.h
armada_overlay.c
armada_slave.c
armada_slave.h
Kconfig DRM: armada: fix missing DRM_KMS_FB_HELPER select 2014-01-27 23:47:14 +00:00
Makefile