Hi,

I am working on an USB2 camera driver on Linux RH9,
kernel 2.4.20-xx. The driver works OK except that it
hangs the kernel when I hot-unplug the cable. 
I found the hang happens as long as the urbs (bulk)
are submitted, even if the stream is not on. (In my
code, several urbs are submitted when the device is
opened, and they are resubmitted in the completion
handler.) 
For test, I comment out the codes for urb submission,
and unplug the cable when the device is open, the
sequence of "disconnect" looks fine. And after
reconnect the camera back in, the driver can be loaded
properly. But one strange thing is every time I
plug/unplug the camera, the light on the floppy drive
turns on for a while and it seems someone wants to do
something on the floppy. When the system hangs, the
"Caps lock" and "Scroll lock" lights on the keyboard
turn on. After reboot, I can not find any trace from
the syslog. Can anyone give me some hints about how to
debug this kind of situation and which part of the
code I should pay more attention to ? Thanks.

Cheers,
Dan

=====
----------------------------------------------------------
Have fun!
__________________________________________________________

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


-------------------------------------------------------
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