On Mon, 12 Jan 2004, Axel Waggershauser wrote:

> Hi,
> 
> I am still working on my driver for our proprietary usb-device. I get a
> kernel panic under the following condition:
> 
> 1. usb_submit_urb // bulk in endpoint, urb with usb_complete_t set
> 2. wait_event_interruptible_timeout // about 3 seconds timeout
> 3. unplug the device
>    -> I see "usb 1-2: USB disconnect, address 2" in syslog
> 4. the wait_event call times out
> 5. usb_unlink_urb // called synchronously
> 6. my disconnect function gets called and completes without problems
> 
> ...so far so good...

Not really...  Your completion routine should get called as soon as the
"USB disconnect" message appears in the syslog.  Below you said that's
what happens on your other system; the question is why doesn't it happen
here?  Are you submitting this URB from within your probe() routine?

> 7. I replug the device, the kernel panics immediately

Do you know if the kernel detects the newly replugged device before 
panicking?

> The console shows, among other things:
> 
> 
> Stack Trace:
> complete + 0x18/0x30
> usb_hcd_give_back_urb
> uhci_finish_completion
> usb_ucd_irq
> do_IRQ
> ...
> 
> Fatal exception in interrupt
> In interrupt handler - not syncing
> 
> (this is a hand copy of the info, that I thought was most important. If
> someone can explain to me how to get the kernel-panic message in a text
> file, please ...)

The way to do this is to have another computer handy, hook them together
by a null-modem serial cable, and then boot your test system telling it to
use the serial port as the console.  Then use a communications program
like minicom on the other system to capture the log output and save it in
a file.

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to