diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-03-08 15:01:18 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-08 15:26:30 -0500 |
commit | 6efb6b77ff6fd512e9ef45b29f1940cb924cd7a6 (patch) | |
tree | af1c250060eac5eed26608e8709ae7e4d3c4b287 /arch/ia64/include | |
parent | 035cfe5ac55d399169b7f61f7a111d3d7075190c (diff) |
hpsim, initialize chip for assigned irqs
Currently, when assign_irq_vector is called and the irq connected in
the simulator, the irq is not ready. request_irq will return ENOSYS
immediately. It is because the irq chip is unset.
Hence set the chip properly to irq_type_hp_sim. And make sure this is
done from both users of simulated interrupts.
Also we have to set handler here, otherwise we end up in
handle_bad_int resulting in spam in logs and no irqs handled. We use
handle_simple_irq as these are SW interrupts that need no ACK or
anything.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/ia64/include')
-rw-r--r-- | arch/ia64/include/asm/hpsim.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/hpsim.h b/arch/ia64/include/asm/hpsim.h index 892ab198a9da..0fe50225daa4 100644 --- a/arch/ia64/include/asm/hpsim.h +++ b/arch/ia64/include/asm/hpsim.h | |||
@@ -10,7 +10,7 @@ int simcons_register(void); | |||
10 | struct tty_driver; | 10 | struct tty_driver; |
11 | extern struct tty_driver *hp_simserial_driver; | 11 | extern struct tty_driver *hp_simserial_driver; |
12 | 12 | ||
13 | void ia64_ssc_connect_irq(long intr, long irq); | 13 | extern int hpsim_get_irq(int intr); |
14 | void ia64_ctl_trace(long on); | 14 | void ia64_ctl_trace(long on); |
15 | 15 | ||
16 | #endif | 16 | #endif |