drm/i915/psr: Fix drm_WARN_ON in intel_psr_disable
authorJouni Högander <jouni.hogander@intel.com>
Thu, 13 Feb 2025 11:16:28 +0000 (13:16 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Wed, 19 Feb 2025 12:04:08 +0000 (14:04 +0200)
commit89eb319aab83c76ffa5096d533bef3905e6e3051
treea8da2f8073b9eb92e582ac2f09bb5b45fbc17ef1
parentbf8531990380c83d29f6fa69bce147c2247ce719
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
drivers/gpu/drm/i915/display/intel_psr.c