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/hisilicon/kirin: 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 kirin 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: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Tian Tao <tiantao6@hisilicon.com>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Yongqin Liu <yongqin.liu@linaro.org>
Cc: John Stultz <jstultz@google.com>
Acked-by: John Stultz <jstultz@google.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-14-tzimmermann@suse.de

+5 -2
+1
drivers/gpu/drm/hisilicon/kirin/Kconfig
··· 2 2 config DRM_HISI_KIRIN 3 3 tristate "DRM Support for Hisilicon Kirin series SoCs Platform" 4 4 depends on DRM && OF && (ARM64 || COMPILE_TEST) 5 + select DRM_CLIENT_SELECTION 5 6 select DRM_KMS_HELPER 6 7 select DRM_GEM_DMA_HELPER 7 8 select DRM_MIPI_DSI
+2
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c
··· 25 25 #include <drm/drm_crtc.h> 26 26 #include <drm/drm_drv.h> 27 27 #include <drm/drm_fb_dma_helper.h> 28 + #include <drm/drm_fbdev_dma.h> 28 29 #include <drm/drm_fourcc.h> 29 30 #include <drm/drm_framebuffer.h> 30 31 #include <drm/drm_gem_dma_helper.h> ··· 926 925 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC, 927 926 .fops = &ade_fops, 928 927 DRM_GEM_DMA_DRIVER_OPS, 928 + DRM_FBDEV_DMA_DRIVER_OPS, 929 929 .name = "kirin", 930 930 .desc = "Hisilicon Kirin620 SoC DRM Driver", 931 931 .date = "20150718",
+2 -2
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c
··· 18 18 #include <linux/platform_device.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 - #include <drm/drm_fbdev_dma.h> 23 23 #include <drm/drm_gem_dma_helper.h> 24 24 #include <drm/drm_gem_framebuffer_helper.h> 25 25 #include <drm/drm_module.h> ··· 237 237 if (ret) 238 238 goto err_kms_cleanup; 239 239 240 - drm_fbdev_dma_setup(drm_dev, 32); 240 + drm_client_setup(drm_dev, NULL); 241 241 242 242 return 0; 243 243