]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iommu/mediatek: Correct the flush_iotlb_all callback
authorYong Wu <yong.wu@mediatek.com>
Mon, 4 Nov 2019 07:01:02 +0000 (15:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:47:11 +0000 (19:47 +0100)
commit 2009122f1d83dd8375572661961eab1e7e86bffe upstream.

Use the correct tlb_flush_all instead of the original one.

Fixes: 4d689b619445 ("iommu/io-pgtable-arm-v7s: Convert to IOMMU API TLB sync")
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/mtk_iommu.c

index f9f69f7111a91e99c1552e16533afac7d0d5f275..154cf44439cb6e951fa729719e1abaf420b0974f 100644 (file)
@@ -394,7 +394,7 @@ static size_t mtk_iommu_unmap(struct iommu_domain *domain,
 
 static void mtk_iommu_iotlb_sync(struct iommu_domain *domain)
 {
-       mtk_iommu_tlb_sync(mtk_iommu_get_m4u_data());
+       mtk_iommu_tlb_flush_all(mtk_iommu_get_m4u_data());
 }
 
 static phys_addr_t mtk_iommu_iova_to_phys(struct iommu_domain *domain,