Re: [PATCH 2/2] iommu/arm-smmu-v3: Replace vsmmu_size/type with get_viommu_size

From: Will Deacon
Date: Mon Jul 21 2025 - 09:20:48 EST


On Fri, Jul 18, 2025 at 04:48:22PM -0700, Nicolin Chen wrote:
> It's more flexible to have a get_viommu_size op. Replace static vsmmu_size
> and vsmmu_type with that.
>
> Suggested-by: Will Deacon <will@xxxxxxxxxx>
> Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx>
> ---
> .../iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c | 8 ++------
> drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 3 +--
> drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c | 14 ++++++++++++--
> 3 files changed, 15 insertions(+), 10 deletions(-)

Acked-by: Will Deacon <will@xxxxxxxxxx>

Will