diff options
| author | Simon Xue <xxm@rock-chips.com> | 2026-07-22 15:35:10 +0800 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2026-07-26 12:28:30 +0000 |
| commit | 414cb6f3ac6217d67963d53866e0fc2288dd3556 (patch) | |
| tree | b0cf90f4387f67a88630aac39f43285f844d95e4 /tools/perf/scripts/python | |
| parent | 8cdeaa50eae8dad34885515f62559ee83e7e8dda (diff) | |
iommu/rockchip: Drop global rk_ops in favor of per-device ops
The driver currently uses a global rk_ops pointer, forcing all IOMMU
instances to share the same operations. This restricts the driver from
supporting SoCs that might integrate different versions of IOMMU hardware.
Since the IOMMU framework passes the master device information to
iommu_paging_domain_alloc(), the global variable is no longer needed.
Fix this by moving rk_ops into struct rk_iommu and struct rk_iommu_domain.
Initialize it per-device during probe via of_device_get_match_data(),
and replace all global references with the instance-specific pointers.
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
