drm/i915/cnl: use previous pll hw readout
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 22 Mar 2019 22:37:49 +0000 (15:37 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 26 Mar 2019 16:30:12 +0000 (09:30 -0700)
commit5e65216d8dd1765d02c6d519a61e95b80e518344
tree15f96e9b8f030e2bc2dac14680af22d317d92659
parent47c9877e9be326f2dfaca5c771919ea3bb7e0ef8
drm/i915/cnl: use previous pll hw readout

By the time cnl_ddi_clock_get() is called we've just got the hw state
from the pll registers. We don't need to read them again: we can rather
reuse what was cached in the dpll_hw_state.

This also affects the code for ICL since it partially reuses the CNL
code. However the more intricate part on ICL is left for another patch.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190322223751.22089-4-lucas.demarchi@intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/icl_dsi.c
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_drv.h