linux/arch/powerpc/platforms/ps3
Marc Zyngier ad3aedfbb0 genirq/irqdomain: Allow irq domain aliasing
It is not uncommon (at least with the ARM stuff) to have a piece
of hardware that implements different flavours of "interrupts".
A typical example of this is the GICv3 ITS, which implements
standard PCI/MSI support, but also some form of "generic MSI".

So far, the PCI/MSI domain is registered using the ITS device_node,
so that irq_find_host can return it. On the contrary, the raw MSI
domain is not registered with an device_node, making it impossible
to be looked up by another subsystem (obviously, using the same
device_node twice would only result in confusion, as it is not
defined which one irq_find_host would return).

A solution to this is to "type" domains that may be aliasing, and
to be able to lookup an device_node that matches a given type.
For this, we introduce irq_find_matching_host() as a superset
of irq_find_host:

struct irq_domain *irq_find_matching_host(struct device_node *node,
                                enum irq_domain_bus_token bus_token);

where bus_token is the "type" we want to match the domain against
(so far, only DOMAIN_BUS_ANY is defined). This result in some
moderately invasive changes on the PPC side (which is the only
user of the .match method).

This has otherwise no functionnal change.

Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: Yijing Wang <wangyijing@huawei.com>
Cc: Ma Jun <majun258@huawei.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Duc Dang <dhdang@apm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/1438091186-10244-2-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2015-07-30 00:14:36 +02:00
..
device-init.c powerpc/irq: Remove IRQF_DISABLED 2011-11-08 14:51:46 +11:00
exports.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
gelic_udbg.c powerpc/ps3: Add gelic udbg driver 2011-09-20 09:20:05 +10:00
htab.c powerpc/mm: don't do tlbie for updatepp request with NO HPTE fault 2014-12-05 16:26:15 +11:00
hvcall.S
interrupt.c genirq/irqdomain: Allow irq domain aliasing 2015-07-30 00:14:36 +02:00
Kconfig usb: host: remove selects of USB_ARCH_HAS_?HCI 2014-02-18 12:36:38 -08:00
Makefile powerpc/ps3: Add gelic udbg driver 2011-09-20 09:20:05 +10:00
mm.c powerpc/ps3: Write highmem info to repository 2015-01-22 17:31:21 +11:00
os-area.c powerpc+of: Rename the drivers/of prom_* functions to of_* 2012-11-15 12:56:52 +11:00
platform.h powerpc/ps3: Add empty repository highmem routines 2015-01-22 17:31:21 +11:00
repository.c POWERPC: drivers: remove __dev* attributes. 2013-01-03 15:57:04 -08:00
setup.c powerpc: Remove more traces of bootmem 2014-11-19 21:41:51 +11:00
smp.c powerpc: Drop return value of smp_ops->probe() 2015-04-10 20:02:49 +10:00
spu.c powerpc/ps3: Remove inline marking of EXPORT_SYMBOL functions 2013-12-02 14:06:53 +11:00
system-bus.c PowerPC: adapt for dma_map_ops changes 2012-03-28 16:36:33 +02:00
time.c powerpc: use device_initcall for registering rtc devices 2015-06-16 14:12:29 -04:00