]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit03490747ce904648d293a99a2a3bca508661ebf8
treef9ab80fbec3e041cf573f98b8780fa37408cee24
parentd65acc52669ab967a482994e39c57fcced57f6d7
drm/exynos: mic: Rework initialization

Commit 4ad16d264557 ("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: 4ad16d264557 ("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