drm/ast: Enable and disable screen in primary-plane functions
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 2 Dec 2019 11:15:52 +0000 (12:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 10 Dec 2019 13:25:28 +0000 (14:25 +0100)
commit2fbeec03e171654c5aec509bafee5523eea77f20
treebdd9a47de81058412dd4354fe78d43a2218e3af2
parent71d873cc99309ff68d2488d32094774c77537e50
drm/ast: Enable and disable screen in primary-plane functions

Enabling and disabling the screen used to be done in the register
initialization and the DPMS function. None of these places is related
to the screen's output.

Now the primary plane's update and disable functions handle screen
display state. The primary plane can now be switched off without
displaying garbage.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191202111557.15176-3-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_mode.c