drm/i915: Reuse normal state readout for LVDS/DVO fixed mode
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 9 Oct 2017 16:19:50 +0000 (19:19 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Oct 2017 16:44:19 +0000 (19:44 +0300)
commitde330815677d80a7eae7c82e134de1507867291b
tree43fc3f8c47ded6030e0527d19d22bf21da5b4fa1
parentaf7a8ffad9c58deac791333a65c62d7fc72f9e9c
drm/i915: Reuse normal state readout for LVDS/DVO fixed mode

Reuse the normal state readout code to get the fixed mode for LVDS/DVO
encoders. This removes some partially duplicated state readout code
from LVDS/DVO encoders. The duplicated code wasn't actually even
populating the negative h/vsync flags, leading to possible state checker
complaints. The normal readout code populates that stuff fully.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171009161951.22420-1-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_dvo.c
drivers/gpu/drm/i915/intel_lvds.c