]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/arm-smmu-v3: Replace vsmmu_size/type with get_viommu_size
authorNicolin Chen <nicolinc@nvidia.com>
Thu, 24 Jul 2025 22:10:02 +0000 (15:10 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 28 Jul 2025 15:07:50 +0000 (12:07 -0300)
commit2c78e74493d33b002312296fbab1d688bfd0f76f
tree1ba6f7da8eae6f1c048ce8cebe372156f62b0663
parent5a1c7590939c3c5678b782d29f0ccfd1323a8d92
iommu/arm-smmu-v3: Replace vsmmu_size/type with get_viommu_size

It's more flexible to have a get_viommu_size op. Replace static vsmmu_size
and vsmmu_type with that.

Link: https://patch.msgid.link/r/20250724221002.1883034-3-nicolinc@nvidia.com
Suggested-by: Will Deacon <will@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Reviewed-by: Pranjal Shrivastava <praan@google.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c