]> git.karo-electronics.de Git - karo-tx-linux.git/commit
of/irq: Add support code for multi-parent version of "msi-parent"
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 18 Sep 2015 13:07:40 +0000 (14:07 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 16 Oct 2015 12:07:13 +0000 (13:07 +0100)
commit48ae34fb39b0c0cfc76275e844fba5b0b04fa49e
tree94509b2e66dbbe14de299c05bfc0336aceecefb7
parentccf91e68a4357e7b65a3f1f13f8af2b767213575
of/irq: Add support code for multi-parent version of "msi-parent"

Since 126b16e2ad98 ("Docs: dt: add generic MSI bindings"),
the definition of "msi-parent" has evolved, while maintaining
some degree of compatibility. It can now express multiple MSI
controllers as parents, as well as some sideband data being
communicated to the controller.

This patch adds the parsing of the property, iterating over
the multiple parents until a suitable irqdomain is found.
It can also fallback to the original parsing if the old
binding is detected.

This support code gets used in the subsequent patches.

Suggested-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/of/irq.c
include/linux/of_irq.h