linux_dsm_epyc7002/drivers/gpu/drm/stm
Noralf Trønnes e0ce0e2a5d drm/stm: 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.

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: Yannick Fertre <yannick.fertre@st.com>
Cc: Philippe Cornu <philippe.cornu@st.com>
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: Yannick Fertré <yannick.fertre@st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180908134648.2582-15-noralf@tronnes.org
2018-10-25 17:00:28 +02:00
..
drv.c drm/stm: Use drm_fbdev_generic_setup() 2018-10-25 17:00:28 +02:00
dw_mipi_dsi-stm.c drm/stm: dsi: Add 1.31 version support 2018-01-30 11:45:01 +01:00
Kconfig drm: stm: remove "default y" in Kconfig 2017-07-26 14:43:23 +02:00
ltdc.c drm: stm: implement get_scanout_position function 2018-09-27 15:04:26 +02:00
ltdc.h drm: stm: implement get_scanout_position function 2018-09-27 15:04:26 +02:00
Makefile drm/stm: Add STM32 DSI controller driver 2017-07-26 14:42:52 +02:00