Skip to contentSkip to conversation

request_irq issue

DISCUSSION Laxmikant Rashinkar 3 participants 3 messages Nov 5, 2008

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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/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

Search 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

#2 lore raw
In reply to Laxmikant Rashinkar
Quoted 2 lines · Laxmikant Rashinkar

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?

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 <><