From: Thomas Zimmermann Date: Fri, 19 Apr 2024 08:29:30 +0000 (+0200) Subject: drm/tiny/mi0283qt: Use fbdev-dma X-Git-Tag: v6.11-rc1~141^2~24^2~204 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a09ecfe2867031bd50324e9fc1bb37bda64e5bb;p=thirdparty%2Flinux.git drm/tiny/mi0283qt: Use fbdev-dma Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by mi0283qt. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: "Noralf Trønnes" Acked-by: Noralf Trønnes Link: https://patchwork.freedesktop.org/patch/msgid/20240419083331.7761-38-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/tiny/mi0283qt.c b/drivers/gpu/drm/tiny/mi0283qt.c index 05509e5195187..cdc5423990cae 100644 --- a/drivers/gpu/drm/tiny/mi0283qt.c +++ b/drivers/gpu/drm/tiny/mi0283qt.c @@ -15,7 +15,7 @@ #include #include -#include +#include #include #include #include @@ -226,7 +226,7 @@ static int mi0283qt_probe(struct spi_device *spi) spi_set_drvdata(spi, drm); - drm_fbdev_generic_setup(drm, 0); + drm_fbdev_dma_setup(drm, 0); return 0; }