drm/i915: Clean up HDMI deep color handling a bit
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 28 Aug 2019 18:34:24 +0000 (21:34 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 2 Sep 2019 15:43:28 +0000 (18:43 +0300)
commit9e362992ff34cab695e669ef1e3f4f65463087e5
tree66467034921e09f6fc761a6f1580b3891603e937
parent66a990dd0c49b534b2396934c1659b3fef34233d
drm/i915: Clean up HDMI deep color handling a bit

Reogranize the HDMI deep color state computation to just
loop over possible bpc values. Avoids having to maintain
so many variants of the clock etc.

The current code also looks confused w.r.t. port_clock vs.
bw_constrained. It would happily update port_clock for
deep color but then not actually enable deep color due to
bw_constrained being set. The new logic handles that case
correctly.

v2: Pull stuff into separate funcs (Jani)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190828183424.7856-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_hdmi.c