drm/exynos: fimd: clear channel before enabling iommu
authorAkshu Agrawal <akshu.a@samsung.com>
Wed, 26 Dec 2012 11:27:41 +0000 (06:27 -0500)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:42:26 +0000 (11:42 +0900)
commit16812be43dbb3a7166e22bbeea7c11b9ffb48e01
treeaf013d2019e97032e930377f4ae8f4251a74e586
parent21327a9076593d53341d456f71e9fbd54758bffd
drm/exynos: fimd: clear channel before enabling iommu

If any fimd channel was already active, initializing iommu will result
in a PAGE FAULT (e.g. 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.

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