Jiri Slaby 6efb6b77ff 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>
2012-03-08 12:26:30 -08:00
..
2011-06-01 13:44:06 -07:00
2011-01-07 01:04:19 -05:00
2010-10-07 14:08:55 +01:00
2010-08-14 22:26:51 +02:00
2010-06-09 11:12:36 +02:00
2009-01-06 14:06:52 +01:00
2009-01-16 10:09:10 +01:00
2009-09-22 07:17:42 -07:00
2010-05-18 14:45:52 -07:00
2011-03-31 11:26:23 -03:00
2011-07-14 12:59:45 +03:00
2011-03-31 11:26:23 -03:00
2010-10-26 16:52:08 -07:00
2009-06-17 09:33:49 -07:00
2010-10-12 09:37:10 +02:00
2011-07-26 16:49:47 -07:00
2008-09-04 09:46:13 +01:00
2009-02-01 11:01:25 +05:30
2010-02-08 10:42:17 -08:00
2011-05-25 08:39:15 -07:00
2012-01-03 22:55:17 -05:00
2012-01-09 12:55:10 -08:00