Thread (11 messages) 11 messages, 4 authors, 2010-03-29

request_irq in I2C driver causes kernel to freeze during probe, but if done later - no problem!

From: Mark Brown <hidden>
Date: 2010-03-29 10:01:37

On Sat, Mar 27, 2010 at 01:12:23AM +0000, Ben Dooks wrote:
On Sat, Mar 27, 2010 at 01:41:52AM +0100, Ulf Samuelsson wrote:
quoted
I tried doing an I2C transfer inside the interrupt routine
(this is my only way of logging)
and then the I2C probe routine locked up already when
doing the request_irq.
i2c transfers can sleep, thus you need somet thread or work-queue to
process them. 
Or with current (post 2.6.29, IIRC 2.6.33 or later) kernels use a
threaded IRQ handler for the I2C interactions.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help