Browse Source

drm/i915: Update crtc state active flag based on DPMS

In a follow up patch the function that computes mode changes will be
replaced with the one from the atomic helpers. To preserve the behavior
of legacy modeset forcing DPMS on, that function will need to detect a
change in the active state of the crtc, so that has to be kept up to
date.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Ander Conselvan de Oliveira 10 years ago
parent
commit
0f63cca2af
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/gpu/drm/i915/intel_display.c

+ 2 - 0
drivers/gpu/drm/i915/intel_display.c

@@ -6107,6 +6107,8 @@ void intel_crtc_update_dpms(struct drm_crtc *crtc)
 		enable |= intel_encoder->connectors_active;
 		enable |= intel_encoder->connectors_active;
 
 
 	intel_crtc_control(crtc, enable);
 	intel_crtc_control(crtc, enable);
+
+	crtc->state->active = enable;
 }
 }
 
 
 static void intel_crtc_disable(struct drm_crtc *crtc)
 static void intel_crtc_disable(struct drm_crtc *crtc)