[PATCH v2 27/30] iommu/io-pgtable-arm: remove deprecated iova_to_phys wrapper

From: Guanghui Feng

Date: Tue Jun 02 2026 - 07:01:32 EST


Remove the iova_to_phys wrapper function and .iova_to_phys assignment
from ARM LPAE io-pgtable, as all callers now use iova_to_phys_length.

Signed-off-by: Guanghui Feng <guanghuifeng@xxxxxxxxxxxxxxxxx>
---
drivers/iommu/io-pgtable-arm.c | 13 -------------
1 file changed, 13 deletions(-)

diff --git a/drivers/iommu/io-pgtable-arm.c b/drivers/iommu/io-pgtable-arm.c
index f33a86fa0f6c..55a32346b586 100644
--- a/drivers/iommu/io-pgtable-arm.c
+++ b/drivers/iommu/io-pgtable-arm.c
@@ -731,18 +731,6 @@ static int visit_iova_to_phys(struct io_pgtable_walk_data *walk_data, int lvl,
return 0;
}

-static phys_addr_t arm_lpae_iova_to_phys_length(struct io_pgtable_ops *ops,
- unsigned long iova,
- size_t *mapped_length);
-
-static phys_addr_t arm_lpae_iova_to_phys(struct io_pgtable_ops *ops,
- unsigned long iova)
-{
- phys_addr_t phys = arm_lpae_iova_to_phys_length(ops, iova, NULL);
-
- return (phys == PHYS_ADDR_MAX) ? 0 : phys;
-}
-
static phys_addr_t arm_lpae_iova_to_phys_length(struct io_pgtable_ops *ops,
unsigned long iova,
size_t *mapped_length)
@@ -965,7 +953,6 @@ arm_lpae_alloc_pgtable(struct io_pgtable_cfg *cfg)
data->iop.ops = (struct io_pgtable_ops) {
.map_pages = arm_lpae_map_pages,
.unmap_pages = arm_lpae_unmap_pages,
- .iova_to_phys = arm_lpae_iova_to_phys,
.iova_to_phys_length = arm_lpae_iova_to_phys_length,
.read_and_clear_dirty = arm_lpae_read_and_clear_dirty,
.pgtable_walk = arm_lpae_pgtable_walk,
--
2.43.7