drm/i915: mark display port DPMS state as 'ON' when enabling output
authorKeith Packard <keithp@keithp.com>
Sun, 3 Oct 2010 20:33:49 +0000 (13:33 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Oct 2010 09:16:09 +0000 (10:16 +0100)
The display port DPMS state is tracked internally in the display port
driver so that when a hotplug event comes along, the driver can know
whether to try retraining the link. This doesn't work well if the
driver never sets the DPMS state to ON when the output is enabled.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_dp.c

index 9e8fe122b0af8e7f993e63fa38292a3bf835f54f..152d94507b79170e651a35374d2238968c7a637d 100644 (file)
@@ -933,6 +933,7 @@ static void intel_dp_commit(struct drm_encoder *encoder)
 
        if (IS_eDP(intel_dp) || IS_PCH_eDP(intel_dp))
                ironlake_edp_backlight_on(dev);
+       intel_dp->dpms_mode = DRM_MODE_DPMS_ON;
 }
 
 static void