]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0031-drm-i915-sdvo-always-set-positive-sync-polarity.patch
linux-ti335x-psp 3.2: update to v3.2.11
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.3 / 0031-drm-i915-sdvo-always-set-positive-sync-polarity.patch
1 From 6a131dd582a8c782e0d2d9fdef0bfb4f53cec306 Mon Sep 17 00:00:00 2001
2 From: Paulo Zanoni <paulo.r.zanoni@intel.com>
3 Date: Fri, 6 Jan 2012 19:45:34 -0200
4 Subject: [PATCH 31/90] drm/i915/sdvo: always set positive sync polarity
6 commit ba68e086223a5f149f37bf8692c8cdbf1b0ba3ef upstream.
8 This is a revert of 81a14b46846fea0741902e8d8dfcc6c6c78154c8.
10 We already set the mode polarity using the SDVO commands with struct
11 intel_sdvo_dtd. We have at least 3 bugs that get fixed with this patch.
12 The documentation, despite not clear, can also be interpreted in a way
13 that suggests this patch is needed.
15 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=15766
16 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42174
17 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43333
18 Reviewed-by: Eric Anholt <eric@anholt.net>
19 Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
20 Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
21 Signed-off-by: Keith Packard <keithp@keithp.com>
22 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 ---
24  drivers/gpu/drm/i915/intel_sdvo.c |    8 +++-----
25  1 file changed, 3 insertions(+), 5 deletions(-)
27 diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
28 index f7b9268..e334ec3 100644
29 --- a/drivers/gpu/drm/i915/intel_sdvo.c
30 +++ b/drivers/gpu/drm/i915/intel_sdvo.c
31 @@ -1066,15 +1066,13 @@ static void intel_sdvo_mode_set(struct drm_encoder *encoder,
32  
33         /* Set the SDVO control regs. */
34         if (INTEL_INFO(dev)->gen >= 4) {
35 -               sdvox = 0;
36 +               /* The real mode polarity is set by the SDVO commands, using
37 +                * struct intel_sdvo_dtd. */
38 +               sdvox = SDVO_VSYNC_ACTIVE_HIGH | SDVO_HSYNC_ACTIVE_HIGH;
39                 if (intel_sdvo->is_hdmi)
40                         sdvox |= intel_sdvo->color_range;
41                 if (INTEL_INFO(dev)->gen < 5)
42                         sdvox |= SDVO_BORDER_ENABLE;
43 -               if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC)
44 -                       sdvox |= SDVO_VSYNC_ACTIVE_HIGH;
45 -               if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC)
46 -                       sdvox |= SDVO_HSYNC_ACTIVE_HIGH;
47         } else {
48                 sdvox = I915_READ(intel_sdvo->sdvo_reg);
49                 switch (intel_sdvo->sdvo_reg) {
50 -- 
51 1.7.9.4