drm/i915: Consult aux_ch instead of port in ->get_aux_clock_divider()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 22 Feb 2018 18:10:33 +0000 (20:10 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 28 Feb 2018 16:11:27 +0000 (18:11 +0200)
commit449059a9692c5f01305bffcca72befc4621f6dbb
tree23efc9dc6724e4fef8b008393f88778ec4c5cd67
parent367a35a6c6c7ea84fe3f47825668ca017cb566ed
drm/i915: Consult aux_ch instead of port in ->get_aux_clock_divider()

While it seems totally unlikely that any system would mix a cpu/north
aux channel with a pch/south port (or vice versa) we should still
consult intel_dp->aux_ch rather than encoder->port when figuring out
which clock is actually used by the aux ch.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180222181036.15251-5-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> #irc
drivers/gpu/drm/i915/intel_dp.c