[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DB6PR0401MB2424DEAB9AE3C3A78ED348C5E6820@DB6PR0401MB2424.eurprd04.prod.outlook.com>
Date: Mon, 30 Apr 2018 03:27:16 +0000
From: Nipun Gupta <nipun.gupta@....com>
To: Rob Herring <robh@...nel.org>
CC: "robin.murphy@....com" <robin.murphy@....com>,
"will.deacon@....com" <will.deacon@....com>,
"mark.rutland@....com" <mark.rutland@....com>,
"catalin.marinas@....com" <catalin.marinas@....com>,
"hch@....de" <hch@....de>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"joro@...tes.org" <joro@...tes.org>,
"m.szyprowski@...sung.com" <m.szyprowski@...sung.com>,
"shawnguo@...nel.org" <shawnguo@...nel.org>,
"frowand.list@...il.com" <frowand.list@...il.com>,
"bhelgaas@...gle.com" <bhelgaas@...gle.com>,
"iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
Bharat Bhushan <bharat.bhushan@....com>,
"stuyoder@...il.com" <stuyoder@...il.com>,
Laurentiu Tudor <laurentiu.tudor@....com>,
Leo Li <leoyang.li@....com>
Subject: RE: [PATCH 2/6 v3] iommu: of: make of_pci_map_rid() available for
other devices too
> -----Original Message-----
> From: Rob Herring [mailto:robh@...nel.org]
> Sent: Friday, April 27, 2018 10:46 PM
> To: Nipun Gupta <nipun.gupta@....com>
> Cc: robin.murphy@....com; will.deacon@....com; mark.rutland@....com;
> catalin.marinas@....com; hch@....de; gregkh@...uxfoundation.org;
> joro@...tes.org; m.szyprowski@...sung.com; shawnguo@...nel.org;
> frowand.list@...il.com; bhelgaas@...gle.com; iommu@...ts.linux-
> foundation.org; linux-kernel@...r.kernel.org; devicetree@...r.kernel.org;
> linux-arm-kernel@...ts.infradead.org; linuxppc-dev@...ts.ozlabs.org; linux-
> pci@...r.kernel.org; Bharat Bhushan <bharat.bhushan@....com>;
> stuyoder@...il.com; Laurentiu Tudor <laurentiu.tudor@....com>; Leo Li
> <leoyang.li@....com>
> Subject: Re: [PATCH 2/6 v3] iommu: of: make of_pci_map_rid() available for
> other devices too
>
> On Fri, Apr 27, 2018 at 03:57:02PM +0530, Nipun Gupta wrote:
> > iommu-map property is also used by devices with fsl-mc. This
> > patch moves the of_pci_map_rid to generic location, so that it
> > can be used by other busses too.
> >
> > 'of_pci_map_rid' is renamed here to 'of_map_rid' and there is no
> > functional change done in the API.
> >
> > Signed-off-by: Nipun Gupta <nipun.gupta@....com>
> > ---
> > drivers/iommu/of_iommu.c | 6 +--
> > drivers/of/address.c | 102
> +++++++++++++++++++++++++++++++++++++++++++++
> > drivers/of/irq.c | 7 ++--
> > drivers/pci/of.c | 101 --------------------------------------------
> > include/linux/of_address.h | 11 +++++
> > include/linux/of_pci.h | 10 -----
> > 6 files changed, 120 insertions(+), 117 deletions(-)
>
> of/address.c isn't really the best fit either, though I don't have a
> better suggestion.
>
> I'm guessing this breaks on Sparc which doesn't build of/address.c.
> I guess move it to base.c and of.h if that is the case.
Sure, that makes sense. Thank you for the suggestion !!
I'll spin off new version with this change.
Regards,
Nipun
>
> Rob
Powered by blists - more mailing lists