linux_dsm_epyc7002/drivers/gpu/drm/zte
Noralf Trønnes c3a8d6ea73 drm/zte: 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: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180908134648.2582-20-noralf@tronnes.org
2018-09-25 11:35:33 +02:00
..
Kconfig drm: zte: support hdmi audio through spdif 2017-01-28 10:17:39 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zx_common_regs.h drm: zte: move CSC register definitions into a common header 2017-05-04 13:51:52 +08:00
zx_drm_drv.c drm/zte: Use drm_fbdev_generic_setup() 2018-09-25 11:35:33 +02:00
zx_drm_drv.h drm: zte: add VGA driver support 2017-05-04 13:53:05 +08:00
zx_hdmi_regs.h drm: zte: support hdmi audio through spdif 2017-01-28 10:17:39 +08:00
zx_hdmi.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
zx_plane_regs.h drm: zte: move CSC register definitions into a common header 2017-05-04 13:51:52 +08:00
zx_plane.c drm: add missing ctx argument to plane transitional helpers 2018-07-03 09:30:19 +02:00
zx_plane.h drm: zte: add .atomic_disable hook to disable graphic layer 2017-01-28 10:17:40 +08:00
zx_tvenc_regs.h drm: zte: add tvenc driver support 2017-01-28 11:51:23 +08:00
zx_tvenc.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
zx_vga_regs.h drm: zte: add VGA driver support 2017-05-04 13:53:05 +08:00
zx_vga.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
zx_vou_regs.h drm: zte: add VGA driver support 2017-05-04 13:53:05 +08:00
zx_vou.c drm/zte: Stop consulting plane->crtc 2018-03-29 19:14:21 +03:00
zx_vou.h drm/zte: Stop consulting plane->crtc 2018-03-29 19:14:21 +03:00