]> git.karo-electronics.de Git - linux-beck.git/commit
iommu/mediatek: Convert M4Uv1 to iommu_fwspec
authorRobin Murphy <robin.murphy@arm.com>
Mon, 17 Oct 2016 11:49:21 +0000 (12:49 +0100)
committerJoerg Roedel <jroedel@suse.de>
Thu, 10 Nov 2016 10:59:32 +0000 (11:59 +0100)
commit84672f192671e64e473eb535259c910860cab7a9
tree692bc7af604d6ab5dc1e9cc72733a1cfd176afa2
parent58f0d1d536bc71718286073aceb819eb0064e4ce
iommu/mediatek: Convert M4Uv1 to iommu_fwspec

Our per-device data consists of the M4U instance and firmware-provided
list of LARB IDs, which is a perfect fit for the generic iommu_fwspec
machinery. Use that directly instead of the custom archdata code - while
we can't rely on the of_xlate() mechanism to initialise things until the
32-bit ARM DMA code learns about groups and default domains, it still
results in a reasonable simplification overall.

CC: Honghui Zhang <honghui.zhang@mediatek.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Tested-by: Honghui Zhang <honghui.zhang@mediatek.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.h
drivers/iommu/mtk_iommu_v1.c