request_irq called too soon ? What's the limit ?
Hello
I was wondering why some test ISR I put up didn't get called. Finally I found out that the "enable" function of the interrupt controller was not called. So the interrupt showed in /proc/interrupts with the good name / number but was not enabled.
At which point may I call this function ? These calls where from the setup_arch function.
Thanks,
Sylvain
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 4 lines · Sylvain Munaut
I was wondering why some test ISR I put up didn't get called. Finally I found out that the "enable" function of the interrupt controller was not
called.
The interrupt is enabled when you call request_irq().
Quoted 2 lines
At which point may I call this function ? These calls where from the
setup_archfunction.
That's too early. Interrupts are expected to be installed from device drivers, so calling it earlier than normal device set up isn't likely to work and could vary from one kernel version to another. Just create some trivial driver that does the interrupt set up for you. You can't use it any earlier than that, anyway.
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/