genirq/msi: Allow creation of a tree-based irqdomain for platform-msi
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 1 Oct 2018 14:13:45 +0000 (16:13 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 2 Oct 2018 10:16:38 +0000 (11:16 +0100)
commit1f83515bebc236d2acda59976a8e852f1a6d50b7
treeddd66f60a07b885f543ef18e54f6b143c46c7b79
parent0c4cb97d4ec9d98fc5e30317326f28ed206f3ac6
genirq/msi: Allow creation of a tree-based irqdomain for platform-msi

platform_msi_create_device_domain() always creates a revmap-based
irqdomain, which has the drawback of requiring the number of MSIs
that can be allocated ahead of time. This is not always possible,
and we sometimes need to use a tree-based irqdomain instead.

Add a new platform_msi_create_device_tree_domain() helper to
that effect.

Reported-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/base/platform-msi.c
include/linux/msi.h