irqchip: sirf: move from legacy mode to linear irqdomain
authorBarry Song <21cnbao@gmail.com>
Tue, 6 Aug 2013 05:37:13 +0000 (13:37 +0800)
committerOlof Johansson <olof@lixom.net>
Thu, 29 Aug 2013 16:48:32 +0000 (09:48 -0700)
commit29eb51a728f9a67a1e1140490fa188561de56588
tree656d13bce040b402a130ff10707c7b911816d475
parent30ca2226bea6f0db519dc53381b893cd66cb5b66
irqchip: sirf: move from legacy mode to linear irqdomain

the series of patches for irqdomain core in 3.11 has broken sirf
irq which uses legacy mapping. all users fail in the new kernel
while setupping irq.

this patch moves to linear irqdomain and drop old legacy irqdomain
codes since we don't need it any more, and at the same time, it
also fixes the broken interrupts of sirfsoc in 3.11.

on the other hand, we actually only have 64 interrupt sources for
prima2 and atlas6, but there are 128 interrupt souces for marco
which uses GIC. in the legacy codes, sirf gpio also uses legacy
irqdomain, so to make gpio interrupt mapping not depend on the
prima2/atlas6/marco an use unified marco,we enlarge prima2/atlas6
interrupt number to 128. here we don't need this workaround any
more as sirf gpio also moved to linear mode before. so we move
SIRFSOC_NUM_IRQS back to 64 too.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/irqchip/irq-sirfsoc.c