[PATCH 2/2] iommu/mediatek: Convert M4Uv1 to iommu_fwspec
Honghui Zhang
honghui.zhang at mediatek.com
Wed Oct 19 00:12:39 PDT 2016
On Mon, 2016-10-17 at 12:49 +0100, Robin Murphy wrote:
> 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 at mediatek.com>
> Signed-off-by: Robin Murphy <robin.murphy at arm.com>
Thanks Robin.
Tested-by: Honghui Zhang <honghui.zhang at mediatek.com>
> ---
> drivers/iommu/mtk_iommu.h | 6 ---
> drivers/iommu/mtk_iommu_v1.c | 95 +++++++++++++++++---------------------------
> 2 files changed, 36 insertions(+), 65 deletions(-)
>
More information about the Linux-mediatek
mailing list