Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/sti: Run DRM default client setup

Call drm_client_setup() to run the kernel's default client setup
for DRM. Set fbdev_probe in struct drm_driver, so that the client
setup can start the common fbdev client.

The sti driver specifies a preferred color mode of 32. As this
is the default if no format has been given, leave it out entirely.

v5:
- select DRM_CLIENT_SELECTION

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Alain Volmat <alain.volmat@foss.st.com>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-39-tzimmermann@suse.de

+4 -1
+1
drivers/gpu/drm/sti/Kconfig
··· 3 3 tristate "DRM Support for STMicroelectronics SoC stiH4xx Series" 4 4 depends on OF && DRM && (ARCH_STI || COMPILE_TEST) 5 5 select RESET_CONTROLLER 6 + select DRM_CLIENT_SELECTION 6 7 select DRM_KMS_HELPER 7 8 select DRM_GEM_DMA_HELPER 8 9 select DRM_PANEL
+3 -1
drivers/gpu/drm/sti/sti_drv.c
··· 15 15 16 16 #include <drm/drm_atomic.h> 17 17 #include <drm/drm_atomic_helper.h> 18 + #include <drm/drm_client_setup.h> 18 19 #include <drm/drm_debugfs.h> 19 20 #include <drm/drm_drv.h> 20 21 #include <drm/drm_fbdev_dma.h> ··· 137 136 .driver_features = DRIVER_MODESET | DRIVER_GEM | DRIVER_ATOMIC, 138 137 .fops = &sti_driver_fops, 139 138 DRM_GEM_DMA_DRIVER_OPS, 139 + DRM_FBDEV_DMA_DRIVER_OPS, 140 140 141 141 .debugfs_init = sti_drm_dbg_init, 142 142 ··· 205 203 206 204 drm_mode_config_reset(ddev); 207 205 208 - drm_fbdev_dma_setup(ddev, 32); 206 + drm_client_setup(ddev, NULL); 209 207 210 208 return 0; 211 209