Hello everyone!

Is it ok to sleep in probe() ?

My testing says - NO. For example, I want to query some information from 
device as soon it is connected. If I sumbit one small interrupt urb (8 bytes) 
and sleep until completion handler wakes me up, everything is ok. But if I 
try to do it 2 times (2 same urbs) - deadlock.

So I guess it is not ok to sleep in a probe. Just wanted somebody to confirm 
this.

And btw, in_interrupt() returns 0 if called from probe(). So from which 
context is probe called ?

Thanks!




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to