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)
commitf13bdbd1fb75d0a6901012ab01a34754b2a4c6cf
tree8b84b8e809e58ac05d94193a880affdde3c29a52
parent5ce405be56b208bc9dc1d278d4ddb6c921e8e1db
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.

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