iommu/mediatek-v1: Update to {map,unmap}_pages
authorRobin Murphy <robin.murphy@arm.com>
Tue, 15 Nov 2022 15:26:35 +0000 (15:26 +0000)
committerJoerg Roedel <jroedel@suse.de>
Sat, 19 Nov 2022 09:44:12 +0000 (10:44 +0100)
commitb577f7e679b763b706032e7a65c7b3a05c5f2184
treef1062e4d1f1dba3dcbca233181ef0bc37ece395e
parent01657bc14a3990c665375f77978631fee77b1fce
iommu/mediatek-v1: Update to {map,unmap}_pages

Now that the core API has a proper notion of multi-page mappings, clean
up the old pgsize_bitmap hack by implementing the new interfaces
instead. This also brings a slight simplification since we no longer
need to worry about rolling back partial mappings on failure.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/768e90ff0c2d61e4723049c1349d8bac58daa437.1668100209.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu_v1.c