public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* request_irq called too soon ? What's the limit ?
@ 2004-08-27 18:27 Sylvain Munaut
  2004-08-27 18:44 ` Dan Malek
  0 siblings, 1 reply; 2+ messages in thread
From: Sylvain Munaut @ 2004-08-27 18:27 UTC (permalink / raw)
  To: Linux/PPC Development


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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: request_irq called too soon ? What's the limit ?
  2004-08-27 18:27 request_irq called too soon ? What's the limit ? Sylvain Munaut
@ 2004-08-27 18:44 ` Dan Malek
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2004-08-27 18:44 UTC (permalink / raw)
  To: Sylvain Munaut; +Cc: Linux/PPC Development


On Aug 27, 2004, at 2:27 PM, Sylvain Munaut wrote:

> 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().

> At which point may I call this function ? These calls where from the
> setup_arch function.

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-27 18:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-27 18:27 request_irq called too soon ? What's the limit ? Sylvain Munaut
2004-08-27 18:44 ` Dan Malek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox