drm/fb-helper: Push down modeset lock into FB helpers
authorThierry Reding <treding@nvidia.com>
Tue, 4 Jul 2017 15:18:21 +0000 (17:18 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Jul 2017 08:00:22 +0000 (10:00 +0200)
commitaf2405af07d168e2905f2ac9494d3a804a549f0f
tree516d361cfd4ed9b403f9ac481dc859a69be5d441
parente6090cc9be15f8e3a5e736d427186e39fea7cceb
drm/fb-helper: Push down modeset lock into FB helpers

Move the modeset locking from drivers into FB helpers.

v2: Also handle intel_connector_add_to_fbdev.

v3: Prevent race in intel_dp_mst with ->detect (Maarten)

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com> (v1)
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170704151833.17304-2-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/i915/intel_dp_mst.c
drivers/gpu/drm/radeon/radeon_dp_mst.c