OSDN Git Service

irqchip/armada-370-xp: Use the generic MSI infrastructure
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 10 Feb 2016 14:46:57 +0000 (15:46 +0100)
committerJason Cooper <jason@lakedaemon.net>
Tue, 16 Feb 2016 17:36:16 +0000 (17:36 +0000)
commitfcc392d501bd2befdf35180abcf07b4849499ed6
tree9b7c0c8ac4b1d8175b5f4e6f55b462d38bfa8d15
parentfed6d3363182fd499cd7f70cf424cd3cba7aef26
irqchip/armada-370-xp: Use the generic MSI infrastructure

This commit moves the irq-armada-370-xp driver from using the
PCI-specific MSI infrastructure to the generic MSI infrastructure, to
which drivers are progressively converted.

In this hardware, the MSI controller is directly bundled inside the
interrupt controller, so we have a single Device Tree node to which
multiple IRQ domaines are attached: the wired interrupt domain and the
MSI interrupt domain. In order to ensure that they can be
differentiated, we have to force the bus_token of the wired interrupt
domain to be DOMAIN_BUS_WIRED. The MSI domain bus_token is
automatically set to the appropriate value by
pci_msi_create_irq_domain().

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Suggested-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Link: https://lkml.kernel.org/r/1455115621-22846-3-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/Kconfig
drivers/irqchip/irq-armada-370-xp.c