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)
committerInki Dae <daeinki@gmail.com>
Sun, 1 Jun 2014 17:07:03 +0000 (02:07 +0900)
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.

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