of/irq: Break out msi-map lookup (again)
authorRobin Murphy <robin.murphy@arm.com>
Mon, 12 Sep 2016 16:13:40 +0000 (17:13 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 16 Sep 2016 08:34:14 +0000 (09:34 +0100)
commit987068fcbdb7a085bb11151b91dc6f4c956c4a1b
tree158ddef73ee6ccf6787bab15202ce593382341f1
parent6ec2392ce0bdc04122d4a27c66f599f2fdc06387
of/irq: Break out msi-map lookup (again)

The PCI msi-map code is already doing double-duty translating IDs and
retrieving MSI parents, which unsurprisingly is the same functionality
we need for the identically-formatted PCI iommu-map property. Drag the
core parsing routine up yet another layer into the general OF-PCI code,
and further generalise it for either kind of lookup in either flavour
of map property.

Acked-by: Rob Herring <robh+dt@kernel.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/of/irq.c
drivers/of/of_pci.c
include/linux/of_pci.h