mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
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 <yandong.lin@rock-chips.com>
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user