drm/i915/display: Move intel_dpll_crtc_compute_clock early

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
This commit is contained in:
Ankit Nautiyal
2025-10-16 11:24:06 +05:30
parent f71f86daa1
commit 2237898830

View 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;