Re: Headphone Socket

From: Philip Blundell <pb.a.t.nexus.co.uk>
Date: Thu Aug 05 2004 - 04:33:53 EDT

On Wed, 2004-08-04 at 23:28, bedboi wrote:
> The only problem the interrupt handler: it seems to me that you can't call
> an i2c ioctl in interrupt context (i'm not sure about this...).
> If anyone got some ideas please post them...

That's correct. Interrupt handlers can't do anything that might involve
sleeping. You might have to create a kernel thread to do the work, and
just wake it up from the irq handler. arch/arm/mach-sa1100/usb-eth.c
contains an example of this kind of thing; have a look at
usb_eth_thread() and related functions.

p.
Received on Thu Aug 5 04:34:05 2004

This archive was generated by hypermail 2.1.8 : Thu Aug 05 2004 - 04:34:42 EDT