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/renesas/shmobile: 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
v2:
- use drm_client_setup_with_fourcc()

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-36-tzimmermann@suse.de

+5 -1
+1
drivers/gpu/drm/renesas/shmobile/Kconfig
··· 4 4 depends on DRM && PM 5 5 depends on ARCH_RENESAS || ARCH_SHMOBILE || COMPILE_TEST 6 6 select BACKLIGHT_CLASS_DEVICE 7 + select DRM_CLIENT_SELECTION 7 8 select DRM_KMS_HELPER 8 9 select DRM_DISPLAY_HELPER 9 10 select DRM_BRIDGE_CONNECTOR
+4 -1
drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c
··· 18 18 #include <linux/slab.h> 19 19 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_modeset_helper.h> 25 27 #include <drm/drm_module.h> ··· 103 101 static const struct drm_driver shmob_drm_driver = { 104 102 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC, 105 103 DRM_GEM_DMA_DRIVER_OPS, 104 + DRM_FBDEV_DMA_DRIVER_OPS, 106 105 .fops = &shmob_drm_fops, 107 106 .name = "shmob-drm", 108 107 .desc = "Renesas SH Mobile DRM", ··· 260 257 if (ret < 0) 261 258 goto err_modeset_cleanup; 262 259 263 - drm_fbdev_dma_setup(ddev, 16); 260 + drm_client_setup_with_fourcc(ddev, DRM_FORMAT_RGB565); 264 261 265 262 return 0; 266 263