Skip to content

Commit 5ed0660

Browse files
Thomas Zimmermanngregkh
authored andcommitted
drm/panel-mipi-dbi: Run DRM default client setup
commit 1b0caa5 upstream. 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 <[email protected]> Cc: "Noralf Trønnes" <[email protected]> Acked-by: Noralf Trønnes <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 25998ed commit 5ed0660

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

drivers/gpu/drm/tiny/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ config DRM_OFDRM
6767
config DRM_PANEL_MIPI_DBI
6868
tristate "DRM support for MIPI DBI compatible panels"
6969
depends on DRM && SPI
70+
select DRM_CLIENT_SELECTION
7071
select DRM_KMS_HELPER
7172
select DRM_GEM_DMA_HELPER
7273
select DRM_MIPI_DBI

drivers/gpu/drm/tiny/panel-mipi-dbi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/spi/spi.h>
1616

1717
#include <drm/drm_atomic_helper.h>
18+
#include <drm/drm_client_setup.h>
1819
#include <drm/drm_drv.h>
1920
#include <drm/drm_fbdev_dma.h>
2021
#include <drm/drm_gem_atomic_helper.h>
@@ -264,6 +265,7 @@ static const struct drm_driver panel_mipi_dbi_driver = {
264265
.driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
265266
.fops = &panel_mipi_dbi_fops,
266267
DRM_GEM_DMA_DRIVER_OPS_VMAP,
268+
DRM_FBDEV_DMA_DRIVER_OPS,
267269
.debugfs_init = mipi_dbi_debugfs_init,
268270
.name = "panel-mipi-dbi",
269271
.desc = "MIPI DBI compatible display panel",
@@ -388,7 +390,7 @@ static int panel_mipi_dbi_spi_probe(struct spi_device *spi)
388390

389391
spi_set_drvdata(spi, drm);
390392

391-
drm_fbdev_dma_setup(drm, 0);
393+
drm_client_setup(drm, NULL);
392394

393395
return 0;
394396
}

0 commit comments

Comments
 (0)