iommu/mediatek: Remove for_each_m4u in tlb_sync_all
authorYong Wu <yong.wu@mediatek.com>
Wed, 8 Dec 2021 12:07:40 +0000 (14:07 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 4 Mar 2022 10:04:44 +0000 (11:04 +0100)
commit17224e08af73fbbc5334226ae75feecb1e037cae
tree4b5195265b693ddd9dcd6d500c02e4a263b15b7e
parent754e0b0e35608ed5206d6a67a791563c631cec07
iommu/mediatek: Remove for_each_m4u in tlb_sync_all

The tlb_sync_all is called from these three functions:
a) flush_iotlb_all: it will be called for each a iommu HW.
b) tlb_flush_range_sync: it already has for_each_m4u.
c) in irq: When IOMMU HW translation fault, Only need flush itself.

Thus, No need for_each_m4u in this tlb_sync_all. Remove it.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20211208120744.2415-2-dafna.hirschfeld@collabora.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c