diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-02-24 14:58:57 +0100 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-02-27 08:53:50 +0100 |
commit | bdaa6e8062d7f8085d8ed94ff88c99406ad53d79 (patch) | |
tree | c68310adbcea90c5c8bdb4b4b7c6517c40ecb0de /arch/sh/kernel/irq.c | |
parent | sh: fix P4 iounmap() pass-through (diff) | |
download | linux-bdaa6e8062d7f8085d8ed94ff88c99406ad53d79.tar.xz linux-bdaa6e8062d7f8085d8ed94ff88c99406ad53d79.zip |
sh: multiple vectors per irq - base
Instead of keeping the single vector -> single linux irq mapping
we extend the intc code to support merging of vectors to a single
linux irq. This helps processors such as sh7750, sh7780 and sh7785
which have more vectors than masking ability. With this patch in
place we can modify the intc tables to use one irq per maskable
irq source. Please note the following:
- If multiple vectors share the same enum then only the
first vector will be available as a linux irq.
- Drivers may need to be rewritten to get pending irq
source from the hardware block instead of irq number.
This patch together with the sh7785 specific intc tables solves
DMA controller irq issues related to buggy interrupt masking.
Reported-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/irq.c')
-rw-r--r-- | arch/sh/kernel/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/irq.c b/arch/sh/kernel/irq.c index 64b7690c664c..90d63aefd275 100644 --- a/arch/sh/kernel/irq.c +++ b/arch/sh/kernel/irq.c @@ -106,7 +106,7 @@ asmlinkage int do_IRQ(unsigned int irq, struct pt_regs *regs) } #endif - irq = irq_demux(evt2irq(irq)); + irq = irq_demux(intc_evt2irq(irq)); #ifdef CONFIG_IRQSTACKS curctx = (union irq_ctx *)current_thread_info(); |