From 993b7f02f5a7e53cc368e74820d2e07c3b342407 Mon Sep 17 00:00:00 2001 From: Yandong Lin Date: Mon, 1 Sep 2025 21:18:11 +0800 Subject: [PATCH] iommu: rockchip: Register pm ops to LATE_SYSTEM_SLEEP_PM_OPS Some master device resume early but the iommu has not yet resume, which will cause the iommu to be inaccessible. So set LATE_SYSTEM_SLEEP_PM_OPS for iommu pm ops, which will resume early and suspend late. Change-Id: I9424198900a56004098e8cf6c3194baa62eeda09 Signed-off-by: Yandong Lin --- drivers/iommu/rockchip-iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c index b7c25cd59bdb..6402b28d80f3 100644 --- a/drivers/iommu/rockchip-iommu.c +++ b/drivers/iommu/rockchip-iommu.c @@ -1819,8 +1819,8 @@ static int __maybe_unused rk_iommu_resume(struct device *dev) static const struct dev_pm_ops rk_iommu_pm_ops = { SET_RUNTIME_PM_OPS(rk_iommu_suspend, rk_iommu_resume, NULL) - SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, - pm_runtime_force_resume) + LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, + pm_runtime_force_resume) }; static struct rk_iommu_ops iommu_data_ops_v1 = {