linux-stable/drivers/gpu/drm/exynos
Thomas Zimmermann 49953b70e7 drm/exynos: Implement fbdev emulation as in-kernel client
Move code from ad-hoc fbdev callbacks into DRM client functions
and remove the old callbacks. The functions instruct the client
to poll for changed output or restore the display. The DRM core
calls both, the old callbacks and the new client helpers, from
the same places. The new functions perform the same operation as
before, so there's no change in functionality.

Replace all code that initializes or releases fbdev emulation
throughout the driver. Instead initialize the fbdev client by a
single call to exynos_fbdev_setup() after exynos has registered its
DRM device. As in most drivers, exynos' fbdev emulation now acts
like a regular DRM client.

The fbdev client setup consists of the initial preparation and the
hot-plugging of the display. The latter creates the fbdev device
and sets up the fbdev framebuffer. The setup performs display
hot-plugging once. If no display can be detected, DRM probe helpers
re-run the detection on each hotplug event.

A call to drm_dev_unregister() releases the client automatically.
No further action is required within exynos. If the fbdev framebuffer
has been fully set up, struct fb_ops.fb_destroy implements the
release. For partially initialized emulation, the fbdev client
reverts the initial setup.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
2023-04-17 16:47:55 +09:00
..
exynos7_drm_decon.c drm: exynos: Remove #ifdef guards for PM related functions 2022-12-12 13:12:01 +00:00
exynos5433_drm_decon.c drm: exynos: Remove #ifdef guards for PM related functions 2022-12-12 13:12:01 +00:00
exynos_dp.c drm: exynos: Remove #ifdef guards for PM related functions 2022-12-12 13:12:01 +00:00
exynos_drm_crtc.c
exynos_drm_crtc.h
exynos_drm_dma.c iommu/dma: Make header private 2022-09-09 09:26:22 +02:00
exynos_drm_dpi.c drm: Remove linux/fb.h from drm_crtc.h 2022-07-05 21:14:02 +03:00
exynos_drm_drv.c drm/exynos: Implement fbdev emulation as in-kernel client 2023-04-17 16:47:55 +09:00
exynos_drm_drv.h drm/exynos: Remove fb_helper from struct exynos_drm_private 2023-04-17 16:47:55 +09:00
exynos_drm_dsi.c drm: bridge: Generalize Exynos-DSI driver into a Samsung DSIM bridge 2023-03-28 09:05:41 +09:00
exynos_drm_fb.c drm/exynos: Implement fbdev emulation as in-kernel client 2023-04-17 16:47:55 +09:00
exynos_drm_fb.h
exynos_drm_fbdev.c drm/exynos: Implement fbdev emulation as in-kernel client 2023-04-17 16:47:55 +09:00
exynos_drm_fbdev.h drm/exynos: Implement fbdev emulation as in-kernel client 2023-04-17 16:47:55 +09:00
exynos_drm_fimc.c drm: exynos: Remove #ifdef guards for PM related functions 2022-12-12 13:12:01 +00:00
exynos_drm_fimd.c drm: exynos: Remove #ifdef guards for PM related functions 2022-12-12 13:12:01 +00:00
exynos_drm_g2d.c drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
exynos_drm_g2d.h
exynos_drm_gem.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
exynos_drm_gem.h
exynos_drm_gsc.c drm/exynos: gsc: Use platform_get_irq() to get the interrupt 2022-03-04 17:13:51 +09:00
exynos_drm_ipp.c drm: Drop drm_blend.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
exynos_drm_ipp.h
exynos_drm_mic.c drm: exynos: Remove #ifdef guards for PM related functions 2022-12-12 13:12:01 +00:00
exynos_drm_plane.c drm: Remove unnecessary include statements of drm_plane_helper.h 2022-07-26 18:42:04 +02:00
exynos_drm_plane.h
exynos_drm_rotator.c drm: exynos: Remove #ifdef guards for PM related functions 2022-12-12 13:12:01 +00:00
exynos_drm_scaler.c drm: exynos: Remove #ifdef guards for PM related functions 2022-12-12 13:12:01 +00:00
exynos_drm_vidi.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
exynos_drm_vidi.h
exynos_hdmi.c drm/exynos: Fix return type for mixer_mode_valid and hdmi_mode_valid 2022-09-26 10:13:00 +09:00
exynos_mixer.c drm/exynos: Fix return type for mixer_mode_valid and hdmi_mode_valid 2022-09-26 10:13:00 +09:00
Kconfig drm: bridge: Generalize Exynos-DSI driver into a Samsung DSIM bridge 2023-03-28 09:05:41 +09:00
Makefile
regs-decon7.h
regs-decon5433.h
regs-fimc.h
regs-gsc.h
regs-hdmi.h
regs-mixer.h
regs-rotator.h
regs-scaler.h
regs-vp.h