mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
drm/i915/psr: drm_WARN_ON when activating disabled PSR
Add drm_WARN_ON for scenario where PSR is activated while it is disabled. Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com> Link: https://lore.kernel.org/r/20250815084534.1637030-2-jouni.hogander@intel.com
This commit is contained in:
parent
11c09b55b3
commit
f9ad930c52
|
|
@ -1787,6 +1787,8 @@ static void intel_psr_activate(struct intel_dp *intel_dp)
|
|||
|
||||
drm_WARN_ON(display->drm, intel_dp->psr.active);
|
||||
|
||||
drm_WARN_ON(display->drm, !intel_dp->psr.enabled);
|
||||
|
||||
lockdep_assert_held(&intel_dp->psr.lock);
|
||||
|
||||
/* psr1, psr2 and panel-replay are mutually exclusive.*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user