* Can I operate i2c device in a tasklet?
@ 2005-12-02 6:20 Sam Song
2005-12-02 8:45 ` Eugene Surovegin
0 siblings, 1 reply; 2+ messages in thread
From: Sam Song @ 2005-12-02 6:20 UTC (permalink / raw)
To: linuxppc-embedded
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!
Oops: Exception in kernel mode, sig: 4
NIP: C0011F98 XER: 00000000 LR: C0011F98
SP: C0236010 REGS: c0235f60 TRAP: 0700
Not tainted
MSR: 00081032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c0234470[0] 'swapper' Last syscall: 120
last math c7e98000 last altivec 00000000
GPR00: C0011F98 C0236010 C0234470 0000001B
00001032 00000001 F0000000 00000000
GPR08: C7A8D060 C0290000 C0269BD7 C0235F20
0000000D 10041C70 08000000 007FFF5E
GPR16: 00000000 00000000 007FFF00 07FFA3AC
00001032 00236340 C0290000 C0270000
GPR24: C0230000 C0230000 F0000100 F0011860
00000000 00000000 C0267F28 C0236010
Call backtrace:
C0011F98 C0012430 C0156970 C0156CA4
C01531E0 C0153F68 C01541CC
C0153BBC C01570B4 C016D7AC C0006D78
C0006E34 C0005CE0 C0007360
C000737C C0003978 C02755B0 000035F0
Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing
<0>Rebooting in 1 seconds..
TIA,
Sam
___________________________________________________________
雅虎免费G邮箱-中国第一绝无垃圾邮件骚扰超大邮箱
http://cn.mail.yahoo.com
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Can I operate i2c device in a tasklet?
2005-12-02 6:20 Can I operate i2c device in a tasklet? Sam Song
@ 2005-12-02 8:45 ` Eugene Surovegin
0 siblings, 0 replies; 2+ messages in thread
From: Eugene Surovegin @ 2005-12-02 8:45 UTC (permalink / raw)
To: Sam Song; +Cc: linuxppc-embedded
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-12-02 8:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-02 6:20 Can I operate i2c device in a tasklet? Sam Song
2005-12-02 8:45 ` Eugene Surovegin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).