OSDN Git Service

drm/i915: Move stuff into intel_dpll_crtc_compute_clock()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 25 Mar 2022 12:31:57 +0000 (14:31 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 25 Apr 2022 18:06:12 +0000 (21:06 +0300)
commit155a27172f823583a6a6d48ec0285baca0512cc9
tree80e938cb17454e7fd4573f3f3dce305e7eb0c679
parent7275f630d842222c093376246136e0cf1c657af2
drm/i915: Move stuff into intel_dpll_crtc_compute_clock()

Move some checks into intel_dpll_crtc_compute_clock() from the
caller. Avoids the caller from having to worry about all this
crap.

We'll also reorder the hw.enable vs. shared_dpll checks since
it makes sense to sanity check that we've cleared out the
old shared_dpll even if the pipe is getting disabled.

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