drm/i915/psr: Split enabling sink for PSR and Panel Replay
authorJouni Högander <jouni.hogander@intel.com>
Fri, 7 Jun 2024 13:49:10 +0000 (16:49 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Tue, 11 Jun 2024 10:02:10 +0000 (13:02 +0300)
commit32f0045f905c3cc17e8c6ae81959b3db95bb0091
tree5f5f25e0848f64a594f39627930f33523017918b
parent91930fc0394b3b54c6a8a3333b2b52c923cf6c52
drm/i915/psr: Split enabling sink for PSR and Panel Replay

Current intel_psr_enable_sink is a mess due to partly reusing PSR bit
definitions for Panel Replay. Even thought PSR and Panel Replay enable
registers do have common bits they still have also different bits and same
bits with different meaning. For sake of clarity split enabling sink to PSR
and Panel Replay specific parts.

Also fix issue caused by using psr->panel_replay_enabled to early.

Fixes: 88ae6c65ecdb ("drm/i915/psr: Unify panel replay enable/disable sink")
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/20240607134917.1327574-7-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c