iommu/io-pgtable-arm-v7s: Use ias to check the valid iova in unmap
authorYong Wu <yong.wu@mediatek.com>
Mon, 11 Jan 2021 11:18:50 +0000 (19:18 +0800)
committerWill Deacon <will@kernel.org>
Mon, 1 Feb 2021 11:31:16 +0000 (11:31 +0000)
commit859da21112520829638a82f458ac2c8c2637e17d
tree4da9cfe73937e5d7378f09e2b9582356658a1f3d
parent66a28915541549f0fe0f4c705dab77443f22b5d6
iommu/io-pgtable-arm-v7s: Use ias to check the valid iova in unmap

Use the ias for the valid iova checking in arm_v7s_unmap. This is a
preparing patch for supporting iova 34bit for MediaTek.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Link: https://lore.kernel.org/r/20210111111914.22211-10-yong.wu@mediatek.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/io-pgtable-arm-v7s.c