drm/exynos: fimd: clear channel before enabling iommu
authorAkshu Agrawal <akshu.a@samsung.com>
Mon, 28 Apr 2014 12:26:39 +0000 (21:26 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:43 +0000 (11:47 +0900)
commitf992c356b84d177933e5ac41142791dc2e1013f1
treece4b21a161ff3b4dd2a811a6fd8b1e692d824677
parente78039aa9b9a9ddea8e6de328ad61b2256eb1c95
drm/exynos: fimd: clear channel before enabling iommu

If any fimd channel was already active, initializing iommu will result
in a PAGE FAULT (e.e. u-boot could have turned on the display and
not disabled it before the kernel starts). This patch checks if any
channel is active before initializing iommu and disables it.

Changelog v2:
- consider SoC without SHADOWCON register

Signed-off-by: Akshu Agrawal <akshu.a@samsung.com>
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fimd.c