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/gm12u320: 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: Hans de Goede <hdegoede@redhat.com>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-54-tzimmermann@suse.de

+4 -1
+1
drivers/gpu/drm/tiny/Kconfig
··· 46 46 config DRM_GM12U320 47 47 tristate "GM12U320 driver for USB projectors" 48 48 depends on DRM && USB && MMU 49 + select DRM_CLIENT_SELECTION 49 50 select DRM_KMS_HELPER 50 51 select DRM_GEM_SHMEM_HELPER 51 52 help
+3 -1
drivers/gpu/drm/tiny/gm12u320.c
··· 9 9 10 10 #include <drm/drm_atomic_helper.h> 11 11 #include <drm/drm_atomic_state_helper.h> 12 + #include <drm/drm_client_setup.h> 12 13 #include <drm/drm_connector.h> 13 14 #include <drm/drm_damage_helper.h> 14 15 #include <drm/drm_drv.h> ··· 633 632 .fops = &gm12u320_fops, 634 633 DRM_GEM_SHMEM_DRIVER_OPS, 635 634 .gem_prime_import = gm12u320_gem_prime_import, 635 + DRM_FBDEV_SHMEM_DRIVER_OPS, 636 636 }; 637 637 638 638 static const struct drm_mode_config_funcs gm12u320_mode_config_funcs = { ··· 708 706 if (ret) 709 707 goto err_put_device; 710 708 711 - drm_fbdev_shmem_setup(dev, 0); 709 + drm_client_setup(dev, NULL); 712 710 713 711 return 0; 714 712