]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/pl111: Run DRM default client setup
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 24 Sep 2024 07:12:30 +0000 (09:12 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 26 Sep 2024 06:28:09 +0000 (08:28 +0200)
Call drm_client_setup_with_color_mode() 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>
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-33-tzimmermann@suse.de
drivers/gpu/drm/pl111/Kconfig
drivers/gpu/drm/pl111/pl111_drv.c

index 20fe1d2c0aaff4527a59f742657d9dbe5d5965a3..82e918820950c787927ecf6a59a82e1fc854b40f 100644 (file)
@@ -5,6 +5,7 @@ config DRM_PL111
        depends on ARM || ARM64 || COMPILE_TEST
        depends on VEXPRESS_CONFIG || VEXPRESS_CONFIG=n
        depends on COMMON_CLK
+       select DRM_CLIENT_SELECTION
        select DRM_KMS_HELPER
        select DRM_GEM_DMA_HELPER
        select DRM_BRIDGE
index 02e6b74d5016694bab9a6c5f35b132ef5d704b2f..13362150b9c678d088e861b14dd293b1ddd07801 100644 (file)
@@ -47,6 +47,7 @@
 
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_bridge.h>
+#include <drm/drm_client_setup.h>
 #include <drm/drm_drv.h>
 #include <drm/drm_fbdev_dma.h>
 #include <drm/drm_fourcc.h>
@@ -225,6 +226,7 @@ static const struct drm_driver pl111_drm_driver = {
        .patchlevel = 0,
        .dumb_create = drm_gem_dma_dumb_create,
        .gem_prime_import_sg_table = pl111_gem_import_sg_table,
+       DRM_FBDEV_DMA_DRIVER_OPS,
 
 #if defined(CONFIG_DEBUG_FS)
        .debugfs_init = pl111_debugfs_init,
@@ -305,7 +307,7 @@ static int pl111_amba_probe(struct amba_device *amba_dev,
        if (ret < 0)
                goto dev_put;
 
-       drm_fbdev_dma_setup(drm, priv->variant->fb_depth);
+       drm_client_setup_with_color_mode(drm, priv->variant->fb_depth);
 
        return 0;