]> Gentwo Git Trees - linux/.git/commit
drm/client: Add client free callback to unprepare fb_helper
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 9 Oct 2025 13:16:28 +0000 (15:16 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 24 Oct 2025 06:44:10 +0000 (08:44 +0200)
commita16f6ba43d9d19996ace3aa08218fa399009f4b7
tree24cf8f28509e777f9ce988658c238bfef2c84c6c
parent550f4dd2ceddadfb2f21ec9237c88e701a2e49b3
drm/client: Add client free callback to unprepare fb_helper

Add free callback to struct drm_client_funcs. Invoke function to
free the client memory as part of the release process. Implement
free for fbdev emulation.

Fbdev emulation allocates and prepares client memory in
drm_fbdev_client_setup(). The release happens in fb_destroy from
struct fb_ops. Multiple implementations of this callback exist in
the various drivers that provide an fbdev implementation. Each of
them needs to follow the implementation details of the fbdev setup
code.

Adding a free callback for the client puts the unprepare and release
of the fbdev client in a single place.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> # core, msm
Acked-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> # omapdrm
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> # gma500
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20251009132006.45834-2-tzimmermann@suse.de
14 files changed:
drivers/gpu/drm/armada/armada_fbdev.c
drivers/gpu/drm/clients/drm_fbdev_client.c
drivers/gpu/drm/drm_client.c
drivers/gpu/drm/drm_fbdev_dma.c
drivers/gpu/drm/drm_fbdev_shmem.c
drivers/gpu/drm/drm_fbdev_ttm.c
drivers/gpu/drm/exynos/exynos_drm_fbdev.c
drivers/gpu/drm/gma500/fbdev.c
drivers/gpu/drm/i915/display/intel_fbdev.c
drivers/gpu/drm/msm/msm_fbdev.c
drivers/gpu/drm/omapdrm/omap_fbdev.c
drivers/gpu/drm/radeon/radeon_fbdev.c
drivers/gpu/drm/tegra/fbdev.c
include/drm/drm_client.h