[RESEND,PATCH 07/13] iommu/mediatek: Add smi_larb info about device

2019-11-04 Thread Chao Hao
All the devices which used iommu are connected to SMI_larb port, so when different devices driver execute initialization, iommu can check larb_id and port_id to distinguish them and then make them match to iommu_group accordingly. We also add dom_cnt variable to describe the number of

[PATCH 07/13] iommu/mediatek: Add smi_larb info about device

2019-10-28 Thread Chao Hao
All the devices which used iommu are connected to SMI_larb port, so when different devices driver execute initialization, iommu can check larb_id and port_id to distinguish them and make them match to iommu_group accordingly. We also add dom_cnt variable to describe the number of mtk_iommu_domain.