diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-10-17 12:49:21 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-11-10 11:59:32 +0100 |
commit | 84672f192671e64e473eb535259c910860cab7a9 (patch) | |
tree | 692bc7af604d6ab5dc1e9cc72733a1cfd176afa2 /drivers/iommu/mtk_iommu.h | |
parent | 58f0d1d536bc71718286073aceb819eb0064e4ce (diff) | |
download | linux-stable-84672f192671e64e473eb535259c910860cab7a9.tar.gz linux-stable-84672f192671e64e473eb535259c910860cab7a9.tar.bz2 linux-stable-84672f192671e64e473eb535259c910860cab7a9.zip |
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>
Diffstat (limited to 'drivers/iommu/mtk_iommu.h')
-rw-r--r-- | drivers/iommu/mtk_iommu.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h index 3dab13b4a211..f59609f20270 100644 --- a/drivers/iommu/mtk_iommu.h +++ b/drivers/iommu/mtk_iommu.h @@ -34,12 +34,6 @@ struct mtk_iommu_suspend_reg { u32 int_main_control; }; -struct mtk_iommu_client_priv { - struct list_head client; - unsigned int mtk_m4u_id; - struct device *m4udev; -}; - struct mtk_iommu_domain; struct mtk_iommu_data { |