drm/log: Implement suspend/resume
authorJocelyn Falempe <jfalempe@redhat.com>
Wed, 4 Dec 2024 15:45:04 +0000 (16:45 +0100)
committerJocelyn Falempe <jfalempe@redhat.com>
Tue, 10 Dec 2024 13:36:54 +0000 (14:36 +0100)
commitcd41b4489c27058570255fe0594a33c25e4bd209
tree14594b8c9b368da8885ea515ac0774cde231d881
parent25e2c2a3eff55683bbe77b108db2a7e389246666
drm/log: Implement suspend/resume

Normally the console is already suspended when the graphic driver
suspend callback is called, but if the parameter no_console_suspend
is set, it might still be active.
So call console_stop()/console_start() in the suspend/resume
callbacks, to make sure it won't try to write to the framebuffer
while the graphic driver is suspended.

Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Acked-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20241204160014.1171469-6-jfalempe@redhat.com
drivers/gpu/drm/clients/drm_log.c