OpenCloudOS-Kernel/drivers/gpu/drm/arc
Noralf Trønnes c638f341c8 drm/arc: 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: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181025201340.34227-2-noralf@tronnes.org
2018-11-01 15:23:21 +01:00
..
Kconfig drm/arc: make fbdev support really optional 2016-07-18 09:11:32 +02:00
Makefile drm/arcpgu: Make ARC PGU usable on simulation platforms 2016-06-13 17:45:17 +02:00
arcpgu.h drm/arc: Use drm_fbdev_generic_setup() 2018-11-01 15:23:21 +01:00
arcpgu_crtc.c drm/arcpgu: Use drm_atomic_helper_shutdown 2018-10-05 18:04:09 +02:00
arcpgu_drv.c drm/arc: Use drm_fbdev_generic_setup() 2018-11-01 15:23:21 +01:00
arcpgu_hdmi.c drm/arcpgu: remove drm_encoder_slave 2018-01-30 18:05:25 +01:00
arcpgu_regs.h
arcpgu_sim.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00