From: Janghyuck Kim Date: Tue, 25 Oct 2016 10:29:53 +0000 (+0900) Subject: [COMMON] iommu/exynos: support no-suspend feature X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0cc73a08a89655c9a3846637e17aaf562938a0d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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) {