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)
commitf3901b5fee41e0410ad22133926e3f328174ab20
tree3c9bc77822c240ee90f82658f1eb2ab857ba1ad1
parent39edb28780e8bf623565fbd2fd0ea091f315ceb3
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