From: Won Jung Date: Mon, 24 Oct 2016 05:18:15 +0000 (+0900) Subject: [COMMON] media: smfc: deactivate sysmmu for scaler X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b05f0015ae9ff069bd88c808d717ebe75543cba;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] media: smfc: deactivate sysmmu for scaler sysmmu is deactivated to prevent sfr access by sysMMU, after smfc power domain is turned off. Change-Id: I19e6dc9504a78cb88d705c6ba07f3889e4570516 Signed-off-by: Won Jung --- diff --git a/drivers/media/platform/exynos/smfc/smfc.c b/drivers/media/platform/exynos/smfc/smfc.c index 628953027d9d..824c44d93a8e 100644 --- a/drivers/media/platform/exynos/smfc/smfc.c +++ b/drivers/media/platform/exynos/smfc/smfc.c @@ -1004,6 +1004,8 @@ static void exynos_smfc_shutdown(struct platform_device *pdev) smfc->flags |= SMFC_DEV_SUSPENDING; spin_unlock_irqrestore(&smfc->flag_lock, flags); wait_event(smfc_suspend_wq, !(smfc->flags & SMFC_DEV_SUSPENDING)); + + iovmm_deactivate(&pdev->dev); } static const struct dev_pm_ops exynos_smfc_pm_ops = {