Software irq handler

Submitted by Anonymous
on February 25, 2009 - 2:35am

It is required to write software irq (120) handler and register it.

But request_irq return -38 (ENOSYS). How can I do it?

The use_irq inside

tthtlc
on
March 4, 2009 - 6:38pm

The use_irq inside request_irq() have been changed across kernel version. You need to use the result of irq_create_mapping() or irq_of_parse_and_map().

According

tthtlc
on
March 5, 2009 - 12:26am

According to:

http://www.nabble.com/interrupts-in-mpc8313-td11919825.html
and
http://www.nabble.com/irq-td19290203.html

It may be due to your IRQ number - it has to be virtual, not the hardware IRQ.

And to quote:

"arch/ppc or arch/powerpc?

If the latter, you need to translate the hardware IRQ into a virtual
IRQ. The easiest way to do this is to put the DMA node into the device
tree and use of_irq_to_resource(). "

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.