drm/i915: dvo_ch7xxx: fix vsync polarity setting
authorImre Deak <imre.deak@intel.com>
Thu, 25 Jul 2013 13:22:31 +0000 (16:22 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 25 Jul 2013 14:10:22 +0000 (16:10 +0200)
This fixes a typo which set the wrong vsync and possibly also hsync
polarity for any modes with positive vsync polarity.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/dvo_ch7xxx.c

index 757e0fa110430b3eab1d2654b453e5f8f1260060..af42e94f68467534f3879965c930c0c47610690d 100644 (file)
@@ -307,7 +307,7 @@ static void ch7xxx_mode_set(struct intel_dvo_device *dvo,
                idf |= CH7xxx_IDF_HSP;
 
        if (mode->flags & DRM_MODE_FLAG_PVSYNC)
-               idf |= CH7xxx_IDF_HSP;
+               idf |= CH7xxx_IDF_VSP;
 
        ch7xxx_writeb(dvo, CH7xxx_IDF, idf);
 }