aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/msi.h
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2014-11-15 10:49:13 +0000
committerThomas Gleixner <tglx@linutronix.de>2014-11-23 13:01:47 +0100
commitf86eff222fabe30da5c536ef2b51bd98d14cfe3b (patch)
tree747aa489c789c5618f016e81cec68251b84d3360 /include/linux/msi.h
parentirqdomain: Introduce helper function irq_domain_add_hierarchy() (diff)
downloadlinux-dev-f86eff222fabe30da5c536ef2b51bd98d14cfe3b.tar.xz
linux-dev-f86eff222fabe30da5c536ef2b51bd98d14cfe3b.zip
genirq: Work around __irq_set_handler vs stacked domains ordering issues
With the introduction of stacked domains, we have the issue that, depending on where in the stack this is called, __irq_set_handler will succeed or fail: If this is called from the inner irqchip, __irq_set_handler() will fail, as it will look at the outer domain as the (desc->irq_data.chip == &no_irq_chip) test fails (we haven't set the top level yet). This patch implements the following: "If there is at least one valid irqchip in the domain, it will probably sort itself out". This is clearly not ideal, but it is far less confusing then crashing because the top-level domain is not up yet. [ tglx: Added comment and a protection against chained interrupts in that context ] Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Cc: Yingjoe Chen <yingjoe.chen@mediatek.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: linux-arm-kernel@lists.infradead.org Cc: Jiang Liu <jiang.liu@linux.intel.com> Link: http://lkml.kernel.org/r/1416048553-29289-3-git-send-email-marc.zyngier@arm.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/msi.h')
0 files changed, 0 insertions, 0 deletions