]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gen9: Assume CDCLK PLL is off if it's not locked
authorImre Deak <imre.deak@intel.com>
Tue, 24 May 2016 12:38:32 +0000 (15:38 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 25 May 2016 12:31:49 +0000 (15:31 +0300)
commit402a0abb643d1c65184ee5d7faa90f1d0a5e55f6
tree0e93a2cbdde4caf00d5490b3e294c95743e7d7a7
parentebcd88cdbbcf57ca47b5e259908f1f4ef632c29a
drm/i915/gen9: Assume CDCLK PLL is off if it's not locked

If the CDCLK PLL isn't locked or incorrectly configured we can just
assume that it's off resulting in fully re-initializing both CDCLK PLL
and CDCLK dividers. This way the CDCLK PLL sanitization added in the
following patch can be done on BXT the same way as it's done on SKL.

v2: (Ville)
- Remove the remaining PLL specific checks from skl_sanitize_cdclk() and
  depend instead on the corresponding check in skl_dpll0_update().
- Use vco == 0 instead of the corresponding boolean check in
  skl_sanitize_cdclk().

CC: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1464093513-16258-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_display.c