]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: Program display mode in CRTC's atomic_enable()
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 14 Sep 2020 07:22:35 +0000 (09:22 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 16 Sep 2020 11:08:05 +0000 (13:08 +0200)
commitaa060f4feff94181aa192378d5beee69729c9eb4
tree3c9bc77822c240ee90f82658f1eb2ab857ba1ad1
parentef290166afa17ffb6c19c96287b75e4366b9c36e
drm/ast: Program display mode in CRTC's atomic_enable()

This change simplifies ast's modesetting code. The display mode
is now programmed from within the CRTC's atomic_enable(), which
only runs if we actually want to program the mode.

Corresponding code in atomic_flush() is being removed. Also removed
is atomic_begin(), which serves no purpose at all.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200914072236.19398-4-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c