drm/i915: Check for I915_MODE_FLAG_INHERITED before drm_atomic_helper_check_modeset
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 21 Feb 2018 09:28:08 +0000 (10:28 +0100)
committerLyude Paul <lyude@redhat.com>
Fri, 2 Mar 2018 01:54:35 +0000 (20:54 -0500)
commit8c58f73c48e517f8be7349ef915da871a95641b9
tree1cdb42e41dee4dd8b21d4f058451db7b85d81bf7
parentffed7bd23641b1a724f7fa49aa3781aa0ccbd9a0
drm/i915: Check for I915_MODE_FLAG_INHERITED before drm_atomic_helper_check_modeset

Moving the check upwards will mean we we no longer have to add planes
and connectors manually, because everything is handled correctly by
drm_atomic_helper_check_modeset() as intended.

[applied with whitespace changes to make sparse happy]
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Lyude Paul <lyude@redhat.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180221092808.30060-1-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/intel_display.c