drm/exynos: mic: Rework initialization
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 13 May 2022 08:31:05 +0000 (10:31 +0200)
committerInki Dae <inki.dae@samsung.com>
Tue, 14 Jun 2022 13:32:16 +0000 (22:32 +0900)
commit7d787184a18f0f84e996de8ff007e4395c1978ea
treef9ab80fbec3e041cf573f98b8780fa37408cee24
parent5c2b745173347ba21e3995d815f26925c91c517d
drm/exynos: mic: Rework initialization

Commit dd8b6803bc49 ("exynos: drm: dsi: Attach in_bridge in MIC driver")
moved Exynos MIC attaching from DSI to MIC driver. However the method
proposed there is incomplete and cannot really work. To properly attach
it to the bridge chain, access to the respective encoder is needed. The
Exynos MIC driver always attaches to the encoder created by the Exynos
DSI driver, so grab it via available helpers for getting access to the
CRTC and encoders. This also requires to change the order of driver
component binding to let DSI to be bound before MIC.

Fixes: dd8b6803bc49 ("exynos: drm: dsi: Attach in_bridge in MIC driver")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Fixed merge conflict.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c
drivers/gpu/drm/exynos/exynos_drm_mic.c