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/ili9341: 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.

v5:
- select DRM_CLIENT_SELECTION

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-18-tzimmermann@suse.de

+4 -1
+1
drivers/gpu/drm/tiny/Kconfig
··· 139 139 config TINYDRM_ILI9341 140 140 tristate "DRM support for ILI9341 display panels" 141 141 depends on DRM && SPI 142 + select DRM_CLIENT_SELECTION 142 143 select DRM_KMS_HELPER 143 144 select DRM_GEM_DMA_HELPER 144 145 select DRM_MIPI_DBI
+3 -1
drivers/gpu/drm/tiny/ili9341.c
··· 16 16 #include <linux/spi/spi.h> 17 17 18 18 #include <drm/drm_atomic_helper.h> 19 + #include <drm/drm_client_setup.h> 19 20 #include <drm/drm_drv.h> 20 21 #include <drm/drm_fbdev_dma.h> 21 22 #include <drm/drm_gem_atomic_helper.h> ··· 151 150 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC, 152 151 .fops = &ili9341_fops, 153 152 DRM_GEM_DMA_DRIVER_OPS_VMAP, 153 + DRM_FBDEV_DMA_DRIVER_OPS, 154 154 .debugfs_init = mipi_dbi_debugfs_init, 155 155 .name = "ili9341", 156 156 .desc = "Ilitek ILI9341", ··· 220 218 221 219 spi_set_drvdata(spi, drm); 222 220 223 - drm_fbdev_dma_setup(drm, 0); 221 + drm_client_setup(drm, NULL); 224 222 225 223 return 0; 226 224 }