]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/display: Move intel_dpll_crtc_compute_clock early
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 16 Oct 2025 05:54:06 +0000 (11:24 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 16 Oct 2025 13:57:35 +0000 (19:27 +0530)
Move intel_dpll_crtc_compute_clock in the beginning of the function so that
clocks are set before other things.

This will help in subsequent changes when the vrr guardband computation
is moved to intel_crtc_compute_config().

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/20251016055415.2101347-3-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_display.c

index d5b2612d4ec25b5631062070e0f3276a318d15c0..3f725553599e2fb67ab7027f3f2ab0f8b58d003a 100644 (file)
@@ -2410,11 +2410,11 @@ static int intel_crtc_compute_config(struct intel_atomic_state *state,
                intel_atomic_get_new_crtc_state(state, crtc);
        int ret;
 
-       ret = intel_crtc_compute_set_context_latency(state, crtc);
+       ret = intel_dpll_crtc_compute_clock(state, crtc);
        if (ret)
                return ret;
 
-       ret = intel_dpll_crtc_compute_clock(state, crtc);
+       ret = intel_crtc_compute_set_context_latency(state, crtc);
        if (ret)
                return ret;