Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: dvo_ch7xxx: fix vsync polarity setting

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>

authored by

Imre Deak and committed by
Daniel Vetter
3b27af35 c20e8355

+1 -1
+1 -1
drivers/gpu/drm/i915/dvo_ch7xxx.c
··· 307 307 idf |= CH7xxx_IDF_HSP; 308 308 309 309 if (mode->flags & DRM_MODE_FLAG_PVSYNC) 310 - idf |= CH7xxx_IDF_HSP; 310 + idf |= CH7xxx_IDF_VSP; 311 311 312 312 ch7xxx_writeb(dvo, CH7xxx_IDF, idf); 313 313 }