]> git.baikalelectronics.ru Git - kernel.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:48:59 +0000 (19:48 +0100)
commit 9f0beb6a0d6aedde95dab5005733ff5695a9aeec upstream.

Use the correct tlb_flush_all instead of the original one.

Fixes: 94376f3d65b7 ("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 67a483c1a9357c7629d569ae1456ca8181b92c89..76b9388cf6892a06c461458153fc31e3732e78a1 100644 (file)
@@ -447,7 +447,7 @@ static size_t mtk_iommu_unmap(struct iommu_domain *domain,
 
 static void mtk_iommu_flush_iotlb_all(struct iommu_domain *domain)
 {
-       mtk_iommu_tlb_sync(mtk_iommu_get_m4u_data());
+       mtk_iommu_tlb_flush_all(mtk_iommu_get_m4u_data());
 }
 
 static void mtk_iommu_iotlb_sync(struct iommu_domain *domain,