[COMMON] media: smfc: deactivate sysmmu for scaler
authorWon Jung <w00.jung@samsung.com>
Mon, 24 Oct 2016 05:18:15 +0000 (14:18 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:31:20 +0000 (14:31 +0900)
sysmmu is deactivated to prevent sfr access by sysMMU,
after smfc power domain is turned off.

Change-Id: I19e6dc9504a78cb88d705c6ba07f3889e4570516
Signed-off-by: Won Jung <w00.jung@samsung.com>
drivers/media/platform/exynos/smfc/smfc.c

index 628953027d9d51ffd7ad8f960aea8994197e6fbc..824c44d93a8edbab48c32df972ccdf1c49cc3c0a 100644 (file)
@@ -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 = {