]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Add support for nested shared IRQs
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 7 Mar 2017 16:28:18 +0000 (16:28 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 11 Mar 2017 11:57:03 +0000 (12:57 +0100)
commit3f46bb3e84d7c5b7251e8e5eb843fcc6aea1f79f
treebc47a83bd62aebe068d3d40c1b54b28f42372e49
parent28e6d6b0967bc0ff2c7782c4f83ce31830914b39
genirq: Add support for nested shared IRQs

On a specific audio system an interrupt input of an audio CODEC is used as a
shared interrupt. That interrupt input is handled by a CODEC specific irq
chip driver and triggers a CPU interrupt via the CODEC irq output line.

The CODEC interrupt handler demultiplexes the CODEC interrupt inputs and
the interrupt handlers for these demultiplexed inputs run nested in the
context of the CODEC interrupt handler.

The demultiplexed interrupts use handle_nested_irq() as their interrupt
handler, which unfortunately has no support for shared interrupts. So the
above hardware cannot be supported.

Add shared interrupt support to handle_nested_irq() by iterating over the
interrupt action chain.

[ tglx: Massaged changelog ]

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Cc: patches@opensource.wolfsonmicro.com
Link: http://lkml.kernel.org/r/1488904098-5350-1-git-send-email-ckeepax@opensource.wolfsonmicro.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/chip.c