From: Ville Syrjälä Date: Wed, 9 Oct 2013 14:24:57 +0000 (+0300) Subject: drm/i915: Populate primary_disabled in intel_modeset_readout_hw_state() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e5b611fd4493d09eb5164f5244ac0a5325346895;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/i915: Populate primary_disabled in intel_modeset_readout_hw_state() Make sure our primary_disabled matches our expectations after driver init. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70270 Tested-by: Paulo Zanoni Signed-off-by: Ville Syrjälä Tested-by: shui yangwei Reviewed-by: Jani Nikula Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index f5126b81b435..b54a4cf899f9 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -10706,6 +10706,7 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev) &crtc->config); crtc->base.enabled = crtc->active; + crtc->primary_disabled = !crtc->active; DRM_DEBUG_KMS("[CRTC:%d] hw state readout: %s\n", crtc->base.base.id,