]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/sysfb: ofdrm: Support power management
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 8 Apr 2026 12:03:16 +0000 (14:03 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 4 May 2026 12:30:59 +0000 (14:30 +0200)
commit41820323cc0f22d6e6b0385c22b4cb85ec0cb722
tree6f771ae9fe2333694cf4925b426ee56ebf22b0a2
parent38699486318e5b6b423aabd35476c37580f2a0ec
drm/sysfb: ofdrm: Support power management

Set PM ops for the ofdrm 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-4-tzimmermann@suse.de
drivers/gpu/drm/sysfb/ofdrm.c