Skip to content

Commit 3a487d1

Browse files
committed
drm/i915/psr: Use crtc_state->port_clock instead of intel_dp->link_rate
Intel_dp->link_rate is not yet set at this point. Instead use crtc_state->port_clock. Fixes: 0dd21f8 ("drm/i915/psr: Silence period and lfps half cycle") Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Animesh Manna <animesh.manna@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240409085759.178235-1-jouni.hogander@intel.com
1 parent 8f6372a commit 3a487d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/display/intel_psr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ static int _lnl_compute_aux_less_alpm_params(struct intel_dp *intel_dp,
12761276
aux_less_wake_lines = intel_usecs_to_scanlines(&crtc_state->hw.adjusted_mode,
12771277
aux_less_wake_time);
12781278

1279-
if (!_lnl_get_silence_period_and_lfps_half_cycle(intel_dp->link_rate,
1279+
if (!_lnl_get_silence_period_and_lfps_half_cycle(crtc_state->port_clock,
12801280
&silence_period,
12811281
&lfps_half_cycle))
12821282
return false;

0 commit comments

Comments
 (0)