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/hx8357d: 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-15-tzimmermann@suse.de

+4 -1
+1
drivers/gpu/drm/tiny/Kconfig
··· 98 98 config TINYDRM_HX8357D 99 99 tristate "DRM support for HX8357D display panels" 100 100 depends on DRM && SPI 101 + select DRM_CLIENT_SELECTION 101 102 select DRM_KMS_HELPER 102 103 select DRM_GEM_DMA_HELPER 103 104 select DRM_MIPI_DBI
+3 -1
drivers/gpu/drm/tiny/hx8357d.c
··· 17 17 #include <linux/spi/spi.h> 18 18 19 19 #include <drm/drm_atomic_helper.h> 20 + #include <drm/drm_client_setup.h> 20 21 #include <drm/drm_drv.h> 21 22 #include <drm/drm_fbdev_dma.h> 22 23 #include <drm/drm_gem_atomic_helper.h> ··· 195 194 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC, 196 195 .fops = &hx8357d_fops, 197 196 DRM_GEM_DMA_DRIVER_OPS_VMAP, 197 + DRM_FBDEV_DMA_DRIVER_OPS, 198 198 .debugfs_init = mipi_dbi_debugfs_init, 199 199 .name = "hx8357d", 200 200 .desc = "HX8357D", ··· 258 256 259 257 spi_set_drvdata(spi, drm); 260 258 261 - drm_fbdev_dma_setup(drm, 0); 259 + drm_client_setup(drm, NULL); 262 260 263 261 return 0; 264 262 }