]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Do not clobber the contents of TRANS_DP_CTL when enabling.
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Aug 2010 10:25:21 +0000 (11:25 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 9 Aug 2010 18:24:28 +0000 (11:24 -0700)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c

index 281db6e5403ad1d9ed024e2924cfbc0344c1951a..97a35a42da28b93e67c888cd81bef18d5eec7379 100644 (file)
 #define  TRANS_DP_VSYNC_ACTIVE_LOW     0
 #define  TRANS_DP_HSYNC_ACTIVE_HIGH    (1<<3)
 #define  TRANS_DP_HSYNC_ACTIVE_LOW     0
+#define  TRANS_DP_SYNC_MASK    (3<<3)
 
 /* SNB eDP training params */
 /* SNB A-stepping */
index 1490a8c14d266465966701dfb8f5d987a8ce248e..c7f19ec88f986bae0f45c75d3680ca90359813b4 100644 (file)
@@ -2097,9 +2097,10 @@ static void ironlake_crtc_dpms(struct drm_crtc *crtc, int mode)
                                int reg;
 
                                reg = I915_READ(trans_dp_ctl);
-                               reg &= ~TRANS_DP_PORT_SEL_MASK;
-                               reg = TRANS_DP_OUTPUT_ENABLE |
-                                     TRANS_DP_ENH_FRAMING;
+                               reg &= ~(TRANS_DP_PORT_SEL_MASK |
+                                        TRANS_DP_SYNC_MASK);
+                               reg |= (TRANS_DP_OUTPUT_ENABLE |
+                                       TRANS_DP_ENH_FRAMING);
 
                                if (crtc->mode.flags & DRM_MODE_FLAG_PHSYNC)
                                      reg |= TRANS_DP_HSYNC_ACTIVE_HIGH;