request_irq issue
Hi,
I have a MPC8347 based board that runs linux-2.6.15.4 and 2.6.27.1.
With the older Linux, my driver is able to successfully request_irq() interrupts 17, 18, 19, 20, 21, 22, 23 & 48.
But with the newer linux, request_irq() works only for 17, 18 & 19. cat /proc/interrupts shows that none of the interrupts above are in use. Any pointers on why request_irq() is behaving thus?
thanks for your help
LK
Quoted 7 lines · Laxmikant Rashinkar
Hi,
I have a MPC8347 based board that runs linux-2.6.15.4 and 2.6.27.1.
With the older Linux, my driver is able to successfully
request_irq()interrupts 17, 18, 19, 20, 21, 22, 23 & 48.
Quoted 8 lines
But with the newer linux,
request_irq()works only for 17, 18 & 19. cat/proc/interruptsshows that none of the interrupts above are in use. Any pointers on whyrequest_irq()is behaving thus?thanks for your help
LKSearch the mailing list archive. I've posted sample code for how to enable
external interrupts, but it was probably around 2.6.19 time. I imagine the same issues still exist.
regards,
Ben
Quoted 2 lines · Laxmikant Rashinkar
But with the newer linux,
request_irq()works only for 17, 18 & 19. cat/proc/interruptsshows that none of the interrupts above are in use. Any pointers on whyrequest_irq()is behaving thus?
Note that you need to get the raw IRQ number from the device tree now, and map it to a virtual IRQ number using irq_of_parse_and_map. That is the number you pass to request_irq().
Arnd <><