drm/mgag200: Don't set or clear <scroff> field during modeset
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 7 Jul 2020 08:24:07 +0000 (10:24 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 14 Jul 2020 07:06:30 +0000 (09:06 +0200)
commit379ba8043db2251302dbe623013effa696e52b2a
tree3c12b4d532780e694411abe7dcccd24a634c5b24
parentfc42e89fe514cecc52b8547ffb7784a758c2c450
drm/mgag200: Don't set or clear <scroff> field during modeset

The simple pipe's disable function disables the screen by calling
mgag200_disable_screen(). The simple pipe's enable function enables the
screen by calling mgag200_enable_display().

During modeset operations the screen is off and remains off. It's only
enabled after the modeset has been completed. Therefore remove all code
that sets or clears the <scroff> field while in modeset.

The related code also modifies the <syncrst> field in SEQ0. For now, keep
this code in place.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200707082411.6583-4-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_mode.c