drm/i915/psr: Use crtc_state->port_clock instead of intel_dp->link_rate
authorJouni Högander <jouni.hogander@intel.com>
Tue, 9 Apr 2024 08:57:59 +0000 (11:57 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Thu, 11 Apr 2024 09:09:48 +0000 (12:09 +0300)
commit3a487d111d065f212f863f2327fdbd3fc311f363
treefcd1f25f822e2254a7213743aed6e1a03c3349a2
parent8f6372a4d69045b8a7dd371bd3c269ad1bf85e08
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: 0dd21f836983 ("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
drivers/gpu/drm/i915/display/intel_psr.c