mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02: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:
parent
bf85319903
commit
89eb319aab
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user