]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip: intc-irqpin: Add support for shared interrupt lines
authorBastian Hecht <hechtb@gmail.com>
Wed, 27 Mar 2013 13:54:03 +0000 (14:54 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 28 Mar 2013 07:39:46 +0000 (16:39 +0900)
commit6d104bc7a264b8c20b2d4b8259c58f465a9bd5e1
tree4da738eed066ad302789aac37b7e7caa5a681d72
parentd82ece550d487d3dc6452b7996f2f5a4a5459ec0
irqchip: intc-irqpin: Add support for shared interrupt lines

On some hardware we don't have a 1-1 mapping from the external
interrupts coming from INTC to the GIC SPI pins. We can however
share lines to demux incoming IRQs on these SoCs.

This patch enables the intc_irqpin driver to detect requests for shared
interrupt lines and demuxes them properly by querying the INTC INTREQx0A
registers.

If you need multiple shared intc_irqpin device instances, be sure to mask
out all interrupts on the INTC that share the one line before you start
to register them. Else you run into IRQ floods that would be caused by
interrupts for which no handler has been set up yet when the first
intc_irqpin device is registered.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/irqchip/irq-renesas-intc-irqpin.c