drm/simple-kms: Use drm_atomic_helper_check_crtc_state()
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 17 Jun 2022 10:32:25 +0000 (12:32 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Jun 2022 09:10:43 +0000 (11:10 +0200)
commitdc2cdd17d1fe25c8d25c306a90cfc9ff17a7ca4f
tree5248416ee34f66f58920503e16f5ac53a75d6ccc
parentd6b9af1097fefa7e6509a4b2f03af45f9eaddae9
drm/simple-kms: Use drm_atomic_helper_check_crtc_state()

Simple-KMS helpers guarantee that the CRTC and plane enable
flags are synchronized. Implement this with atomic helpers
drm_atomic_helper_check_crtc_state() on the CRTC side, and
drm_atomic_helper_check_plane_state() on the plane side.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220617103226.25617-3-tzimmermann@suse.de
drivers/gpu/drm/drm_simple_kms_helper.c