linux-stable/drivers/gpu/drm/sti
Noralf Trønnes 0f26e5ce3e drm/sti: 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().

If drm_fbdev_generic_setup() fails, an error is printed by the function.

drm_fbdev_generic_setup() handles mode_config.num_connector being zero.
In that case it retries fbdev setup on the next .output_poll_changed.

Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: Vincent Abriou <vincent.abriou@st.com>
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180908134648.2582-14-noralf@tronnes.org
2018-09-25 11:33:51 +02:00
..
Kconfig drm/sti: Depend on OF rather than selecting it 2018-04-05 14:04:17 +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
NOTES
sti_awg_utils.c gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_awg_utils.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_compositor.c gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_compositor.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_crtc.c gpu: drm: sti: fix spelling mistake: "initialze" -> "initialize" 2018-05-02 13:09:49 +02:00
sti_crtc.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_cursor.c drm: add missing ctx argument to plane transitional helpers 2018-07-03 09:30:19 +02:00
sti_cursor.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_drv.c drm/sti: Use drm_fbdev_generic_setup() 2018-09-25 11:33:51 +02:00
sti_drv.h drm/sti: Use drm_fb_cma_fbdev_init/fini() 2017-12-08 14:47:41 +01:00
sti_dvo.c drm: drop _mode_ from drm_mode_connector_attach_encoder 2018-07-13 18:40:27 +02:00
sti_gdp.c drm: add missing ctx argument to plane transitional helpers 2018-07-03 09:30:19 +02:00
sti_gdp.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_hda.c drm/sti: do not remove the drm_bridge that was never added 2018-08-07 15:33:00 +02:00
sti_hdmi.c drm/sti: do not remove the drm_bridge that was never added 2018-08-07 15:33:00 +02:00
sti_hdmi.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_hdmi_tx3g4c28phy.c gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_hdmi_tx3g4c28phy.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_hqvdp.c drm: add missing ctx argument to plane transitional helpers 2018-07-03 09:30:19 +02:00
sti_hqvdp_lut.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_mixer.c gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_mixer.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_plane.c drm/sti: Stop consulting plane->fb 2018-03-29 19:14:21 +03:00
sti_plane.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_tvout.c gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_vid.c gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_vid.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_vtg.c gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00
sti_vtg.h gpu: drm: sti: Adopt SPDX identifiers 2017-12-06 15:51:23 +01:00