linux/drivers/gpu/drm/fsl-dcu
Noralf Trønnes f4d26fa913 drm/fsl-dcu: 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: Stefan Agner <stefan@agner.ch>
Cc: Alison Wang <alison.wang@nxp.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Stefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181025201340.34227-3-noralf@tronnes.org
2018-11-01 15:23:58 +01:00
..
fsl_dcu_drm_crtc.c drm/fsl-dcu: use drm_display_mode_to_videomode to calculate timing parameters 2018-10-01 21:51:07 +02:00
fsl_dcu_drm_crtc.h
fsl_dcu_drm_drv.c drm/fsl-dcu: Use drm_fbdev_generic_setup() 2018-11-01 15:23:58 +01:00
fsl_dcu_drm_drv.h drm/fsl-dcu: Use drm_fbdev_generic_setup() 2018-11-01 15:23:58 +01:00
fsl_dcu_drm_kms.c drm/fsl-dcu: Use drm_gem_fb_create() 2017-10-01 17:00:20 +02:00
fsl_dcu_drm_output.h drm/fsl-dcu: rework codes to support of_graph dt binding for panel 2016-07-15 18:06:28 -07:00
fsl_dcu_drm_plane.c drm: Plumb modifiers through plane init 2017-08-01 17:50:06 +01:00
fsl_dcu_drm_plane.h drm/fsl-dcu: move layer initialization to plane file 2016-06-18 18:34:22 -07:00
fsl_dcu_drm_rgb.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
fsl_tcon.c drm/fsl-dcu: check for clk_prepare_enable() error 2017-02-07 20:28:04 -08:00
fsl_tcon.h drm/fsl-dcu: add TCON driver 2016-04-25 20:27:18 -07:00
Kconfig drm/fsl-dcu: make fbdev support really optional 2016-07-18 09:11:39 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00