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
..
2014-06-02 10:25:02 -04:00
2014-07-02 14:10:19 -04:00
2013-01-31 16:24:47 -05:00
2013-09-11 11:44:38 -04:00
2013-09-11 11:44:38 -04:00
2014-01-10 15:28:10 +01:00
2013-09-11 11:44:37 -04:00
2014-03-06 16:46:56 -05:00
2014-03-06 16:46:56 -05:00
2013-12-18 11:35:01 +10:00
2014-06-02 10:25:05 -04:00
2014-06-10 09:35:42 +10:00
2013-12-18 11:35:21 +10:00
2013-12-18 11:33:46 +10:00
2013-12-18 11:35:01 +10:00
2013-12-18 11:35:01 +10:00
2014-03-06 16:46:56 -05:00
2014-03-06 16:46:56 -05:00