From c0cc73a08a89655c9a3846637e17aaf562938a0d Mon Sep 17 00:00:00 2001 From: Janghyuck Kim Date: Tue, 25 Oct 2016 19:29:53 +0900 Subject: [PATCH] [COMMON] iommu/exynos: support no-suspend feature 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 --- drivers/iommu/exynos-iommu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 335068108c34..b4cabf54492b 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -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) { -- 2.20.1