linux/drivers/gpu/drm/ast
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
..
ast_dp501.c drm/ast: initial DP501 support (v0.2) 2014-05-19 11:13:57 +10:00
ast_dram_tables.h
ast_drv.c drm/ast: Fix double lock at PM resume 2014-06-02 09:57:29 +02:00
ast_drv.h drm/ast: initial DP501 support (v0.2) 2014-05-19 11:13:57 +10:00
ast_fb.c drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
ast_main.c Merge branch 'ast-updates' of ssh://people.freedesktop.org/~/linux into drm-next 2014-05-19 11:15:08 +10:00
ast_mode.c drm: add register and unregister functions for connectors 2014-06-19 08:55:28 +02:00
ast_post.c drm: Remove spurious ';' 2014-06-10 09:35:42 +10:00
ast_tables.h drm/ast: add widescreen + rb modes from X.org driver (v2) 2014-05-19 11:13:55 +10:00
ast_ttm.c drm: init TTM dev_mapping in ttm_bo_device_init() 2014-03-16 12:23:42 +01:00
Kconfig drm: Add separate Kconfig option for fbdev helpers 2013-10-11 23:36:58 +02:00
Makefile drm/ast: initial DP501 support (v0.2) 2014-05-19 11:13:57 +10:00