drm/i915: Move the DPLL extra power domain handling up one level
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 12 Oct 2023 12:35:21 +0000 (15:35 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 31 Oct 2023 06:28:22 +0000 (08:28 +0200)
commit3e7e07c4cf638b281f420be77afef7d93481a212
tree3d1b923122d9913ccfdc546c825e21300a26833b
parent7e72cd6cafb166b815b7997597c09a01412da064
drm/i915: Move the DPLL extra power domain handling up one level

The extra DPLL power domain is currently handled in three places:
- combo_pll_enable()
- combo_pll_disable()
- readout_dpll_hw_state()

First two of those are low level PLL funcs, but the third is a higher
level thing. So the current situation is rather inconsistent. Unify
this by moving the PLL enable/disable up one level. This also means
the extra power domain could be trivially be used by other platforms
as well.

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