]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/fbdev-ttm: Support struct drm_driver.fbdev_probe
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 24 Sep 2024 07:13:02 +0000 (09:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:03 +0000 (13:02 +0100)
commitdad0617fe3b95e780c7bf6987c2fa8b19af668cb
tree863b2402b643c9bbe1d7e274a77308d7bf3c6e65
parent09d1157182d0f669c48c7f5d1b0621ff46db21ea
drm/fbdev-ttm: Support struct drm_driver.fbdev_probe

[ Upstream commit c7c1b9e1d52b0a0dbb0ee552efdc3360c0f5363c ]

Rework fbdev probing to support fbdev_probe in struct drm_driver
and reimplement the old fb_probe callback on top of it. Provide an
initializer macro for struct drm_driver that sets the callback
according to the kernel configuration.

This change allows the common fbdev client to run on top of TTM-
based DRM drivers.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-65-tzimmermann@suse.de
Stable-dep-of: 6b481ab0e685 ("drm/nouveau: select FW caching")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_fbdev_ttm.c
include/drm/drm_fbdev_ttm.h