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/simpledrm: 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>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-59-tzimmermann@suse.de

+4 -6
+1
drivers/gpu/drm/tiny/Kconfig
··· 87 87 tristate "Simple framebuffer driver" 88 88 depends on DRM && MMU 89 89 select APERTURE_HELPERS 90 + select DRM_CLIENT_SELECTION 90 91 select DRM_GEM_SHMEM_HELPER 91 92 select DRM_KMS_HELPER 92 93 help
+3 -6
drivers/gpu/drm/tiny/simpledrm.c
··· 12 12 #include <drm/drm_aperture.h> 13 13 #include <drm/drm_atomic.h> 14 14 #include <drm/drm_atomic_state_helper.h> 15 + #include <drm/drm_client_setup.h> 15 16 #include <drm/drm_connector.h> 16 17 #include <drm/drm_crtc_helper.h> 17 18 #include <drm/drm_damage_helper.h> ··· 1010 1009 1011 1010 static struct drm_driver simpledrm_driver = { 1012 1011 DRM_GEM_SHMEM_DRIVER_OPS, 1012 + DRM_FBDEV_SHMEM_DRIVER_OPS, 1013 1013 .name = DRIVER_NAME, 1014 1014 .desc = DRIVER_DESC, 1015 1015 .date = DRIVER_DATE, ··· 1028 1026 { 1029 1027 struct simpledrm_device *sdev; 1030 1028 struct drm_device *dev; 1031 - unsigned int color_mode; 1032 1029 int ret; 1033 1030 1034 1031 sdev = simpledrm_device_create(&simpledrm_driver, pdev); ··· 1039 1038 if (ret) 1040 1039 return ret; 1041 1040 1042 - color_mode = drm_format_info_bpp(sdev->format, 0); 1043 - if (color_mode == 16) 1044 - color_mode = sdev->format->depth; // can be 15 or 16 1045 - 1046 - drm_fbdev_shmem_setup(dev, color_mode); 1041 + drm_client_setup(dev, sdev->format); 1047 1042 1048 1043 return 0; 1049 1044 }