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

The solomon driver specifies a preferred color mode of 32. As this
is the default if no format has been given, leave it out entirely.

v5:
- select DRM_CLIENT_SELECTION

Signed-off-by: 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-60-tzimmermann@suse.de

+4 -1
+1
drivers/gpu/drm/solomon/Kconfig
··· 2 2 tristate "DRM support for Solomon SSD13xx OLED displays" 3 3 depends on DRM && MMU 4 4 select BACKLIGHT_CLASS_DEVICE 5 + select DRM_CLIENT_SELECTION 5 6 select DRM_GEM_SHMEM_HELPER 6 7 select DRM_KMS_HELPER 7 8 help
+3 -1
drivers/gpu/drm/solomon/ssd130x.c
··· 20 20 21 21 #include <drm/drm_atomic.h> 22 22 #include <drm/drm_atomic_helper.h> 23 + #include <drm/drm_client_setup.h> 23 24 #include <drm/drm_crtc_helper.h> 24 25 #include <drm/drm_damage_helper.h> 25 26 #include <drm/drm_edid.h> ··· 1781 1780 1782 1781 static const struct drm_driver ssd130x_drm_driver = { 1783 1782 DRM_GEM_SHMEM_DRIVER_OPS, 1783 + DRM_FBDEV_SHMEM_DRIVER_OPS, 1784 1784 .name = DRIVER_NAME, 1785 1785 .desc = DRIVER_DESC, 1786 1786 .date = DRIVER_DATE, ··· 2031 2029 if (ret) 2032 2030 return ERR_PTR(dev_err_probe(dev, ret, "DRM device register failed\n")); 2033 2031 2034 - drm_fbdev_shmem_setup(drm, 32); 2032 + drm_client_setup(drm, NULL); 2035 2033 2036 2034 return ssd130x; 2037 2035 }