]> git.baikalelectronics.ru Git - kernel.git/commit
drm/simple-kms: Support custom CRTC state
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 14 Jul 2021 14:22:38 +0000 (16:22 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Sun, 8 Aug 2021 18:14:08 +0000 (20:14 +0200)
commit9b8d736b16675a005770b7b0c93ff1ec9fa017e9
tree03006f056787cd74a6c2881d8885cc4ab80fe70e
parent61633faf699b6c7061c37ac5ac51f0cc28338e8c
drm/simple-kms: Support custom CRTC state

Simple KMS helpers already support custom state for planes. Extend the
helpers to support custom CRTC state as well. Drivers can set the reset,
duplicate and destroy callbacks for the display pipeline's CRTC state
and inherit from struct drm_crtc_state by embedding an instance.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210714142240.21979-12-tzimmermann@suse.de
drivers/gpu/drm/drm_simple_kms_helper.c
include/drm/drm_simple_kms_helper.h