iommu/mediatek: Add a PM_CLK_AO flag for infra iommu
authorYong Wu <yong.wu@mediatek.com>
Tue, 3 May 2022 07:14:11 +0000 (15:14 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 4 May 2022 08:39:39 +0000 (10:39 +0200)
commit6077c7e5d22f2e0ffdb1dd97bf37cba66f317627
tree2583cd23c6800126dd31ef16fb7c51cbbd8f0d81
parent32e1cccf68123bcd357c0115567d2ce3453cd3ed
iommu/mediatek: Add a PM_CLK_AO flag for infra iommu

The power/clock of infra iommu is always on, and it doesn't have the
device link with the master devices, then the infra iommu device's PM
status is not active, thus we add A PM_CLK_AO flag for infra iommu.

The tlb operation is a bit not clear here, there are 2 special cases.
Comment them in the code.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/20220503071427.2285-21-yong.wu@mediatek.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c