]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/meson: Run DRM default client setup
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 24 Sep 2024 07:12:25 +0000 (09:12 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 26 Sep 2024 06:28:06 +0000 (08:28 +0200)
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 meson 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: Neil Armstrong <neil.armstrong@linaro.org>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-28-tzimmermann@suse.de
drivers/gpu/drm/meson/Kconfig
drivers/gpu/drm/meson/meson_drv.c

index 2544756538cc2d97d80f08c3df6fc06696391de3..b410e0d8015a1586a1a4e41ca9da611c9baedd84 100644 (file)
@@ -3,6 +3,7 @@ config DRM_MESON
        tristate "DRM Support for Amlogic Meson Display Controller"
        depends on DRM && OF && (ARM || ARM64)
        depends on ARCH_MESON || COMPILE_TEST
+       select DRM_CLIENT_SELECTION
        select DRM_KMS_HELPER
        select DRM_DISPLAY_HELPER
        select DRM_BRIDGE_CONNECTOR
index 4bd0baa2a4f55581812022a3bc3afa4bcd022bf7..2f76f48da38dcc291d546d4463a9028eb0a2bee9 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <drm/drm_aperture.h>
 #include <drm/drm_atomic_helper.h>
+#include <drm/drm_client_setup.h>
 #include <drm/drm_drv.h>
 #include <drm/drm_fbdev_dma.h>
 #include <drm/drm_gem_dma_helper.h>
@@ -98,6 +99,7 @@ static const struct drm_driver meson_driver = {
 
        /* DMA Ops */
        DRM_GEM_DMA_DRIVER_OPS_WITH_DUMB_CREATE(meson_dumb_create),
+       DRM_FBDEV_DMA_DRIVER_OPS,
 
        /* Misc */
        .fops                   = &fops,
@@ -353,7 +355,7 @@ static int meson_drv_bind_master(struct device *dev, bool has_components)
        if (ret)
                goto uninstall_irq;
 
-       drm_fbdev_dma_setup(drm, 32);
+       drm_client_setup(drm, NULL);
 
        return 0;