[COMMON] iommu/exynos: support no-suspend feature
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Tue, 25 Oct 2016 10:29:53 +0000 (19:29 +0900)
committerSangwook Ju <sw.ju@samsung.com>
Mon, 14 May 2018 10:45:20 +0000 (19:45 +0900)
This patch supports no-suspend mode that not to disable sysmmu when it
is going to suspend state. It is necessary for the master driver like
abox that should operate in suspend mode.

Change-Id: I1ff1ccd83997f3852d5b962767c43bc0d6cd6819
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/iommu/exynos-iommu.c

index 335068108c349f505c15b70fee34c01e5d825e00..b4cabf54492be4b377cd1fe4bd95c5254abe1be1 100644 (file)
@@ -586,6 +586,9 @@ static int __init sysmmu_parse_dt(struct device *sysmmu,
                }
        }
 
+       if (of_property_read_bool(sysmmu->of_node, "sysmmu,no-suspend"))
+               dev_pm_syscore_device(sysmmu, true);
+
        /* Parsing TLB properties */
        cnt = of_property_count_u32_elems(sysmmu->of_node, props_name);
        for (i = 0; i < cnt; i+=2) {