]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/icl: use previous pll hw readout
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 22 Mar 2019 22:37:50 +0000 (15:37 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 26 Mar 2019 16:30:12 +0000 (09:30 -0700)
commit23c29b814c7cd5bec049c626c12404282f00e06b
tree65939daae28695afc08979b6a2cf6e5572b8e9a0
parentb88ffe67ecba61c7a84661009deabcf67dab4f72
drm/i915/icl: use previous pll hw readout

By the time icl_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.

While at it, s/refclk/ref_clock/ just to be consistent with the name
used in code nearby.

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