drm/i915: Sanitize the shared DPLL find/reference interface
authorImre Deak <imre.deak@intel.com>
Fri, 28 Jun 2019 14:36:29 +0000 (17:36 +0300)
committerImre Deak <imre.deak@intel.com>
Mon, 1 Jul 2019 11:57:42 +0000 (14:57 +0300)
commit01b24f50b67f49e40172c58d5e8034630f776110
treed8a35228ff457d40e22f18e8006e04ef54fb2976
parent866955fa452e1f3d2164bd731d71348d4978e8bc
drm/i915: Sanitize the shared DPLL find/reference interface

Pass the PLL HW state to the PLL find/reference functions making it
clearer what is their input. Also pass to these the atomic state and the
CRTC object instead of the CRTC state, since they don't require the
latter.

Move setting the PLL in the crtc_state to the get_dpll() hook, which
is the more logical place for this, where the related PLL HW state was also
set.

This refactoring is also a preparation for a follow-up patch that will
have to find/reference multiple PLLs.

No functional changes.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190628143635.22066-18-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dpll_mgr.c