linux/drivers/gpu/drm/msm
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
..
adreno drm/msm: add perf logging debugfs 2014-06-02 07:36:21 -04:00
dsi drm/msm: resync generated headers 2014-01-09 14:38:59 -05:00
hdmi Merge tag 'topic/core-stuff-2014-06-30' of git://anongit.freedesktop.org/drm-intel into drm-next 2014-07-08 11:04:35 +10:00
mdp drm/msm: fix IOMMU cleanup for -EPROBE_DEFER 2014-06-22 08:32:10 -04:00
Kconfig drm/msm: update for ARCH_MSM -> ARCH_QCOM 2014-05-30 15:37:54 -04:00
Makefile drm/msm: add perf logging debugfs 2014-06-02 07:36:21 -04:00
msm_drv.c drm/msm: storage class should be before const qualifier 2014-06-22 08:32:09 -04:00
msm_drv.h drm/msm: add perf logging debugfs 2014-06-02 07:36:21 -04:00
msm_fb.c drm/msm: split out msm_kms.h 2014-01-09 14:44:04 -05:00
msm_fbdev.c drm: Introduce drm_fb_helper_prepare() 2014-07-08 11:31:28 +10:00
msm_gem_prime.c drm/msm: prime support 2013-11-01 12:39:44 -04:00
msm_gem_submit.c drm/msm: add rd logging debugfs 2014-06-02 07:36:11 -04:00
msm_gem.c Merge branch 'drm-next' of git://people.freedesktop.org/~dvdhrm/linux into drm-next 2014-07-08 11:08:31 +10:00
msm_gem.h drm/msm: add rd logging debugfs 2014-06-02 07:36:11 -04:00
msm_gpu.c drm/msm: add perf logging debugfs 2014-06-02 07:36:21 -04:00
msm_gpu.h drm/msm: add perf logging debugfs 2014-06-02 07:36:21 -04:00
msm_iommu.c drm/msm: fix IOMMU cleanup for -EPROBE_DEFER 2014-06-22 08:32:10 -04:00
msm_kms.h drm/msm: add mdp5/apq8x74 2014-01-09 14:44:06 -05:00
msm_mmu.h drm/msm: fix IOMMU cleanup for -EPROBE_DEFER 2014-06-22 08:32:10 -04:00
msm_perf.c drm/msm: add perf logging debugfs 2014-06-02 07:36:21 -04:00
msm_rd.c drm/msm: add rd logging debugfs 2014-06-02 07:36:11 -04:00
msm_ringbuffer.c drm/msm: add a3xx gpu support 2013-08-24 14:57:18 -04:00
msm_ringbuffer.h drm/msm: add a3xx gpu support 2013-08-24 14:57:18 -04:00
NOTES drm/msm: add mdp5/apq8x74 2014-01-09 14:44:06 -05:00