mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user