From mboxrd@z Thu Jan 1 00:00:00 1970 From: Honghui Zhang Subject: Re: [PATCH 2/2] iommu/mediatek: Convert M4Uv1 to iommu_fwspec Date: Wed, 19 Oct 2016 15:12:39 +0800 Message-ID: <1476861159.31964.1.camel@mtksdaap41> References: <0205bf6404b16bdebe8039bfc65570a2a6f9f960.1476704508.git.robin.murphy@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+glpam-linux-mediatek=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: Robin Murphy Cc: joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, yong.wu-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org List-Id: linux-mediatek@lists.infradead.org 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 > Signed-off-by: Robin Murphy Thanks Robin. Tested-by: Honghui Zhang > --- > drivers/iommu/mtk_iommu.h | 6 --- > drivers/iommu/mtk_iommu_v1.c | 95 +++++++++++++++++--------------------------- > 2 files changed, 36 insertions(+), 65 deletions(-) >