Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752901AbdFPHSs (ORCPT ); Fri, 16 Jun 2017 03:18:48 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:34641 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752133AbdFPHSp (ORCPT ); Fri, 16 Jun 2017 03:18:45 -0400 MIME-Version: 1.0 In-Reply-To: <149752258917.21887.4347773581840409774.sendpatchset@little-apple> References: <149752254550.21887.15183665699230243235.sendpatchset@little-apple> <149752258917.21887.4347773581840409774.sendpatchset@little-apple> From: Geert Uytterhoeven Date: Fri, 16 Jun 2017 09:18:38 +0200 X-Google-Sender-Auth: SXOaJxIKPl4yfPHp1sO77ySDurw Message-ID: Subject: Re: [PATCH 04/04] iommu/ipmmu-vmsa: Replace local utlb code with fwspec ids To: Magnus Damm Cc: Joerg Roedel , Laurent Pinchart , Geert Uytterhoeven , Sricharan R , Will Deacon , "linux-kernel@vger.kernel.org" , Linux-Renesas , iommu@lists.linux-foundation.org, Simon Horman , Robin Murphy , Marek Szyprowski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1182 Lines: 35 Hi Magnus, On Thu, Jun 15, 2017 at 12:29 PM, Magnus Damm wrote: > Now when both 32-bit and 64-bit code inside the driver is using > fwspec it is possible to replace the utlb handling with fwspec ids > that get populated from ->of_xlate(). Thanks for your patch! > --- 0013/drivers/iommu/ipmmu-vmsa.c > +++ work/drivers/iommu/ipmmu-vmsa.c 2017-06-15 18:32:27.580607110 +0900 > static int ipmmu_of_xlate(struct device *dev, > struct of_phandle_args *spec) > { > - return ipmmu_init_platform_device(dev); > + iommu_fwspec_add_ids(dev, spec->args, 1); Does it hurt if iommu_fwspec_add_ids() is called multiple times, as this is done before the "Initialize once - xlate() will call multiple times" check? > + > + return ipmmu_init_platform_device(dev, spec); > } Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds