drm/sysfb: corebootdrm: Support power management
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 8 Apr 2026 12:03:14 +0000 (14:03 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 4 May 2026 12:30:58 +0000 (14:30 +0200)
commit54068b05c85d75746034ef75721b240823cc872d
tree7514302ab22c144860e8eac2ae9535f867ee56e6
parent5e5b64b6dc702c7bcd8da340263535128a3d5518
drm/sysfb: corebootdrm: Support power management

Set PM ops for the corebootdrm driver. Suspend and resume the DRM
state on systems that support it.

Many systems lose the hardware's framebuffer settings on suspend,
hence resuming doesn't work there. Yet some systems, most notably
emulators, keep the hardware state across suspend/resume cycles.
There, DRM's suspend and resume helpers bring back the display on
resume.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patch.msgid.link/20260408120722.328769-2-tzimmermann@suse.de
drivers/gpu/drm/sysfb/corebootdrm.c