summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/mtk_iommu.h
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2020-06-25 15:08:31 +0200
committerJoerg Roedel <jroedel@suse.de>2020-06-30 11:59:48 +0200
commit589601720d9d0366670eb415a4a62692d7af3713 (patch)
tree32c9b3f1f415c1514b79594f4037719af2170eef /drivers/iommu/mtk_iommu.h
parent2263d818bceff516254bfce4091632530720505a (diff)
downloadlinux-stable-589601720d9d0366670eb415a4a62692d7af3713.tar.gz
linux-stable-589601720d9d0366670eb415a4a62692d7af3713.tar.bz2
linux-stable-589601720d9d0366670eb415a4a62692d7af3713.zip
iommu/mediatek: Do no use dev->archdata.iommu
The iommu private pointer is already used in the Mediatek IOMMU v1 driver, so move the dma_iommu_mapping pointer into 'struct mtk_iommu_data' and do not use dev->archdata.iommu anymore. Signed-off-by: Joerg Roedel <jroedel@suse.de> Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com> Link: https://lore.kernel.org/r/20200625130836.1916-9-joro@8bytes.org
Diffstat (limited to 'drivers/iommu/mtk_iommu.h')
-rw-r--r--drivers/iommu/mtk_iommu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h
index ea949a324e33..1682406e98dc 100644
--- a/drivers/iommu/mtk_iommu.h
+++ b/drivers/iommu/mtk_iommu.h
@@ -62,6 +62,8 @@ struct mtk_iommu_data {
struct iommu_device iommu;
const struct mtk_iommu_plat_data *plat_data;
+ struct dma_iommu_mapping *mapping; /* For mtk_iommu_v1.c */
+
struct list_head list;
struct mtk_smi_larb_iommu larb_imu[MTK_LARB_NR_MAX];
};