2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00
linux-next/arch/powerpc/platforms/embedded6xx
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
..
c2k.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
flipper-pic.c genirq/irqdomain: Allow irq domain aliasing 2015-07-30 00:14:36 +02:00
flipper-pic.h powerpc: gamecube/wii: flipper interrupt controller support 2009-12-12 22:24:28 -07:00
gamecube.c powerpc: Convert power off logic to pm_power_off 2014-11-03 12:12:51 +11:00
hlwd-pic.c powerpc: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc 2015-06-02 16:54:44 +10:00
hlwd-pic.h powerpc: wii: hollywood interrupt controller support 2009-12-12 22:24:30 -07:00
holly.c Disintegrate asm/system.h for PowerPC 2012-03-28 18:30:02 +01:00
Kconfig powerpc/legacy_serial: Support MVME5100 UARTS with shifted registers 2014-04-28 17:36:25 +10:00
linkstation.c powerpc: Convert power off logic to pm_power_off 2014-11-03 12:12:51 +11:00
ls_uart.c [POWERPC] 82xx and embedded6xx: Use machine_*_initcall() hooks in platform code 2008-01-28 08:30:41 -06:00
Makefile powerpc: Delete old PrPMC 280/2800 support 2014-03-07 15:54:48 +11:00
mpc10x.h powerpc/pci: Support per-aperture memory offset 2013-05-06 13:40:40 +10:00
mpc7448_hpc2.c powerpc: Remove some unused functions 2015-01-28 15:00:24 +11:00
mvme5100.c powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
storcenter.c powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
usbgecko_udbg.c powerpc/gamecube/wii: delete unneeded test before of_node_put 2014-11-10 09:59:35 +11:00
usbgecko_udbg.h powerpc: gamecube/wii: early debugging using usbgecko 2009-12-12 22:24:31 -07:00
wii.c powerpc: Convert power off logic to pm_power_off 2014-11-03 12:12:51 +11:00