-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path0094-iommu-arm-smmu-v3-Change-pm-interface-during-system-.patch
39 lines (34 loc) · 1.54 KB
/
0094-iommu-arm-smmu-v3-Change-pm-interface-during-system-.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 7a100cb853cc1dc2604ac11194e142588fcd9db4 Mon Sep 17 00:00:00 2001
From: Wang Yinfeng <[email protected]>
Date: Mon, 17 Jun 2024 19:33:08 +0800
Subject: [PATCH 094/150] iommu/arm-smmu-v3: Change pm interface during system
sleep transition
This patch enforces proper order of suspending/restoring devices
during system sleep transition, so use SET_SYSTEM_SLEEP_PM_OPS
interface to make it workaround for ensuring that SMMUs are
suspended after their master devices. For example S4 test with SMMUs.
Signed-off-by: Wang Yinfeng <[email protected]>
Signed-off-by: Li Mingzhe <[email protected]>
Signed-off-by: Wang Xu <[email protected]>
Signed-off-by: Chen Baozi <[email protected]>
Change-Id: Icf29cd269cced58ff9678007f5596f21f7f93f0f
Signed-off-by: Andrew Powers-Holmes <[email protected]>
---
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
index 8ef0e1a766b1..45fbdd4dd499 100644
--- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
+++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
@@ -4002,8 +4002,8 @@ static void arm_smmu_driver_unregister(struct platform_driver *drv)
#ifdef CONFIG_PM_SLEEP
static const struct dev_pm_ops arm_smmu_pm_ops = {
- .suspend = arm_smmu_suspend,
- .resume = arm_smmu_resume,
+ SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(arm_smmu_suspend,
+ arm_smmu_resume)
};
#define ARM_SMMU_PM_OPS (&arm_smmu_pm_ops)
#else
--
2.47.0