drm/atomic: Check new_crtc_state->active to determine if CRTC needs disable in self...
authorjsg <jsg@openbsd.org>
Thu, 7 Apr 2022 06:49:11 +0000 (06:49 +0000)
committerjsg <jsg@openbsd.org>
Thu, 7 Apr 2022 06:49:11 +0000 (06:49 +0000)
From Liu Ying
cd07b19fbf37b96a9885fd6e8545c355dba59ac3 in linux 5.15.y/5.15.27
69e630016ef4e4a1745310c446f204dc6243e907 in mainline linux

sys/dev/pci/drm/drm_atomic_helper.c

index 2c0c6ec..ff2bc9a 100644 (file)
@@ -1001,7 +1001,7 @@ crtc_needs_disable(struct drm_crtc_state *old_state,
         * it's in self refresh mode and needs to be fully disabled.
         */
        return old_state->active ||
-              (old_state->self_refresh_active && !new_state->enable) ||
+              (old_state->self_refresh_active && !new_state->active) ||
               new_state->self_refresh_active;
 }