of/irq: Add new function of_msi_map_rid()
authorDavid Daney <david.daney@cavium.com>
Thu, 8 Oct 2015 22:10:48 +0000 (15:10 -0700)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 16 Oct 2015 10:45:27 +0000 (11:45 +0100)
commit8db02d8b4089fa8098a170738e8ae7939aa8ae7a
treeea1896aed96b16e1b5e3f82a015c7067d66cd6ba
parentb531566e4dced7566dfa2e4925ec8b6a8cb7806b
of/irq: Add new function of_msi_map_rid()

The device tree property "msi-map" specifies how to create the PCI
requester id used in some MSI controllers.  Add a new function
of_msi_map_rid() that finds the msi-map property and applies its
translation to a given requester id.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/of/irq.c
include/linux/of_irq.h