linux-stable/drivers/gpu/drm/pl111
Noralf Trønnes 30f7b5e7c2 drm/pl111: Use drm_fbdev_generic_setup()
The CMA helper is already using the drm_fb_helper_generic_probe part of
the generic fbdev emulation. This patch makes full use of the generic
fbdev emulation by using its drm_client callbacks. This means that
drm_mode_config_funcs->output_poll_changed and drm_driver->lastclose are
now handled by the emulation code. Additionally fbdev unregister happens
automatically on drm_dev_unregister().

The drm_fbdev_generic_setup() call is put after drm_dev_register() in the
driver. This is done to highlight the fact that fbdev emulation is an
internal client that makes use of the driver, it is not part of the
driver as such. If fbdev setup fails, an error is printed, but the driver
succeeds probing.

Cc: Eric Anholt <eric@anholt.net>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180908134648.2582-13-noralf@tronnes.org
2018-09-25 11:33:06 +02:00
..
Kconfig drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC 2018-02-26 11:04:51 +05:30
Makefile drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_debugfs.c drm/pl111: Add all registers to debugfs 2017-09-10 23:57:57 +02:00
pl111_display.c drm/pl111: Use 64-bit arithmetic instead of 32-bit 2018-07-17 11:25:18 -07:00
pl111_drm.h drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_drv.c drm/pl111: Use drm_fbdev_generic_setup() 2018-09-25 11:33:06 +02:00
pl111_nomadik.c drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_nomadik.h drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_versatile.c drm/pl111: Fix module probe bug 2018-05-04 00:13:41 +02:00
pl111_versatile.h drm/pl111: Add handling of Versatile platforms 2017-09-10 23:58:42 +02:00
pl111_vexpress.c drm/pl111: Fix module probe bug 2018-05-04 00:13:41 +02:00
pl111_vexpress.h drm/pl111: Fix module probe bug 2018-05-04 00:13:41 +02:00