[PATCH 2/6 v3] iommu: of: make of_pci_map_rid() available for other devices too
Rob Herring
robh at kernel.org
Fri Apr 27 10:15:37 PDT 2018
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 at nxp.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.
Rob
More information about the linux-arm-kernel
mailing list