]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: Fix black screen when getting out of suspend
authorJocelyn Falempe <jfalempe@redhat.com>
Wed, 22 Jun 2022 12:48:15 +0000 (14:48 +0200)
committerJocelyn Falempe <jfalempe@redhat.com>
Mon, 27 Jun 2022 08:15:02 +0000 (10:15 +0200)
commit3503361d0745da2cebcfabdd97795c4d51336e37
tree34f823e6f846e95efb97d35b52d83108520ea56a
parenta8837dfec18b75486ca7f8bee0702b2c61df0e1e
drm/ast: Fix black screen when getting out of suspend

With an AST2600, the screen is garbage when going out of suspend.
This is because color settings are lost, and not restored on resume.
Force the color settings on DPMS_ON, to make sure the settings are correct.

I didn't write this code, it comes from the out-of-tree aspeed driver v1.13
https://www.aspeedtech.com/support_driver/

Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Tested-by: Venkat Tadikonda <venkateswara.rao@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220622124815.356035-1-jfalempe@redhat.com
drivers/gpu/drm/ast/ast_mode.c