drm/i915: Reuse normal state readout for LVDS/DVO fixed mode
authorVille Syrjälä <[email protected]>
Mon, 9 Oct 2017 16:19:50 +0000 (19:19 +0300)
committerVille Syrjälä <[email protected]>
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 <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Chris Wilson <[email protected]>
Tested-by: Chris Wilson <[email protected]>
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