drm/i915/psr: Fix drm_WARN_ON in intel_psr_disable

Currently intel_psr_disable is dumping out warning if PSR is not
supported. On monitor supporting only Panel Replay we are seeing this
warning. Fix this by checking Panel Replay support as well.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250213111628.2183753-1-jouni.hogander@intel.com
This commit is contained in:
Jouni Högander
2025-02-13 13:16:28 +02:00
parent bf85319903
commit 89eb319aab

View File

@@ -2187,7 +2187,8 @@ void intel_psr_disable(struct intel_dp *intel_dp,
if (!old_crtc_state->has_psr)
return;
if (drm_WARN_ON(display->drm, !CAN_PSR(intel_dp)))
if (drm_WARN_ON(display->drm, !CAN_PSR(intel_dp) &&
!CAN_PANEL_REPLAY(intel_dp)))
return;
mutex_lock(&intel_dp->psr.lock);