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

Configure Feed

Select the types of activity you want to include in your feed.

drm/stm: Run DRM default client setup

Call drm_client_setup_with-fourcc() 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.

v5:
- select DRM_CLIENT_SELECTION
v4:
- remove duplicated S-o-b tag (Gerd)
v2:
- use drm_client_setup_with_fourcc()

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Yannick Fertre <yannick.fertre@foss.st.com>
Cc: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Cc: Philippe Cornu <philippe.cornu@foss.st.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Acked-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-40-tzimmermann@suse.de

+5 -1
+1
drivers/gpu/drm/stm/Kconfig
··· 3 3 tristate "DRM Support for STMicroelectronics SoC Series" 4 4 depends on DRM && (ARCH_STM32 || COMPILE_TEST) 5 5 depends on COMMON_CLK 6 + select DRM_CLIENT_SELECTION 6 7 select DRM_KMS_HELPER 7 8 select DRM_GEM_DMA_HELPER 8 9 select DRM_PANEL_BRIDGE
+4 -1
drivers/gpu/drm/stm/drv.c
··· 18 18 #include <drm/drm_aperture.h> 19 19 #include <drm/drm_atomic.h> 20 20 #include <drm/drm_atomic_helper.h> 21 + #include <drm/drm_client_setup.h> 21 22 #include <drm/drm_drv.h> 22 23 #include <drm/drm_fbdev_dma.h> 24 + #include <drm/drm_fourcc.h> 23 25 #include <drm/drm_gem_dma_helper.h> 24 26 #include <drm/drm_gem_framebuffer_helper.h> 25 27 #include <drm/drm_module.h> ··· 68 66 .patchlevel = 0, 69 67 .fops = &drv_driver_fops, 70 68 DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE(stm_gem_dma_dumb_create), 69 + DRM_FBDEV_DMA_DRIVER_OPS, 71 70 }; 72 71 73 72 static int drv_load(struct drm_device *ddev) ··· 209 206 if (ret) 210 207 goto err_unload; 211 208 212 - drm_fbdev_dma_setup(ddev, 16); 209 + drm_client_setup_with_fourcc(ddev, DRM_FORMAT_RGB565); 213 210 214 211 return 0; 215 212