]> git.karo-electronics.de Git - karo-tx-linux.git/commit
irq: support domains with non-zero hwirq base
authorRob Herring <rob.herring@calxeda.com>
Fri, 30 Sep 2011 15:48:38 +0000 (10:48 -0500)
committerArnd Bergmann <arnd@arndb.de>
Thu, 20 Oct 2011 15:58:28 +0000 (17:58 +0200)
commit0b83b8048a306e01141c65e68d1ddc03b664ef73
treeb043feea49630e0d12aafc14c45508b17f77d2dc
parent6b2a65ff17691de4192bc375612b9c43310aa388
irq: support domains with non-zero hwirq base

Interrupt controllers can have non-zero starting value for h/w irq numbers.
Adding support in irq_domain allows the domain hwirq numbering to match
the interrupt controllers' numbering.

As this makes looping over irqs for a domain more complicated, add loop
iterators to iterate over all hwirqs and irqs for a domain.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irqdomain.h
kernel/irq/irqdomain.c