]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Make sure vsyncshift is positive
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 28 Mar 2014 21:29:32 +0000 (23:29 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 31 Mar 2014 08:46:33 +0000 (10:46 +0200)
commit2753962a24b6d3f2d61b1e9c21d54101c547d1e3
tree571c190878b0e9f8fd0d787e7066a488409f9443
parentc5ae31b7768614f9633f9070895a6bbeedd98322
drm/i915: Make sure vsyncshift is positive

If vsyncshift comes out as negative, add one htotal to it to get the
corresponding positive value.

This is rather theoretical as it would require a mode where the
hsync+back porch is very long and the active+front porch very short.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c