]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: fbdev: Move custom suspend code to new callback
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 12 Dec 2024 17:08:47 +0000 (18:08 +0100)
committerMaarten Lankhorst <dev@lankhorst.se>
Wed, 5 Mar 2025 20:48:49 +0000 (21:48 +0100)
commita1c008b987d0f0fc5a9d746dd7782350ba48ce57
tree82d7b28ba7036dade2ca2b44810a23fd8e3e2128
parent2ef5754c9649151ce438c9b30ec720840762d2a2
drm/i915/display: fbdev: Move custom suspend code to new callback

If the fbdev buffer is backed by stolen memory, it has to be cleared
upon resume from hibernation. Move the code into the new callback
fb_set_suspend, so that it can run from DRM's generic fbdev client.
No functional change. Other drivers are not affected.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241212170913.185939-7-tzimmermann@suse.de
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/i915/display/intel_fbdev.c
include/drm/drm_fb_helper.h