Can I operate i2c device in a tasklet?

Eugene Surovegin ebs at ebshome.net
Fri Dec 2 19:45:40 EST 2005


On Fri, Dec 02, 2005 at 02:20:07PM +0800, Sam Song wrote:
> Hi all,
> 
> I found that once I operated i2c bus like 
> read from i2c device in 2.4.31 kernl in a
> interrupt handler or tasklet, kernel panic
> would happen. Is there any way to make it
> in such case? I need to write sth on RTC
> alarm register with an interrupt event.
> 
> ......
> Scheduling in interrupt
> kernel BUG at sched.c:564!

You cannot access i2c layer from non-process context. Please, search 
mail list archives, this matter was discussed countless number of 
times.

-- 
Eugene




More information about the Linuxppc-embedded mailing list