1
0
Fork 0
alistair23-linux/drivers/gpu/drm/udl
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
..
Kconfig drm: Add separate Kconfig option for fbdev helpers 2013-10-11 23:36:58 +02:00
Makefile drm/udl: initial UDL driver (v4) 2012-03-15 13:35:34 +00:00
udl_connector.c drm: add register and unregister functions for connectors 2014-06-19 08:55:28 +02:00
udl_drv.c drm: kill ->gem_init_object() and friends 2013-10-09 14:38:02 +10:00
udl_drv.h drm: kill ->gem_init_object() and friends 2013-10-09 14:38:02 +10:00
udl_encoder.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2012-10-03 23:29:23 -07:00
udl_fb.c drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
udl_gem.c drm/gem: remove misleading gfp parameter to get_pages() 2014-07-08 00:29:53 +02:00
udl_main.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2014-06-12 11:32:30 -07:00
udl_modeset.c drm: Replace crtc fb with primary plane fb (v3) 2014-04-01 20:18:28 -04:00
udl_transfer.c drm/udl: Inline memcmp() for RLE compression of xfer 2013-02-08 11:52:00 +10:00