]> 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)
commitdf25cd5eccfdacc8ddeeb640cfa35b0d9ea3be14
treef9ab80fbec3e041cf573f98b8780fa37408cee24
parentf4c6f464eedc0c5824908c948170d960904eb765
drm/exynos: mic: Rework initialization

Commit 91e812291b87 ("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: 91e812291b87 ("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