There is no oops if the device is not opened (or at least there isn't one
"every time like clockwork" 8-).

Using the usbserial.c from linux-2.4.25 in my 2.4.22 tree (yes, arbitrary
experiment, but safe enough given the diff, and my overall problem goes back
to an embedded box that I can't just rev to 2.4.25) prevents avoids the
oops.  While I didn't see it last night, it seems that the differences seem
to be that __serial_close() used to have "port->tty = NULL" just before
usb_serial_disconnect() subsequently tried to "port->tty->driver_data =
NULL".

So yay and all, but the root problem that got me looking here it seems is
deeper still.

The original problem that got me to peel the lid back in the first place was
the fact that the usbserial driver would leave the application hanging,
unaware of the fact that the device was gone.

I am preparing a short patch to solve this problem, now that I understand
it.

Rob.



-----Original Message-----
From: Oliver Neukum [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 04, 2004 6:32 AM
To: Robert White; [EMAIL PROTECTED]
Subject: Re: Kernel OOPS in usb_serial_disconnect (usbserial) 2.4.22


> A single program has the /dev/usb/tts/0 (yes, I am using devfs for this
> system just now 8-) device open and is blocked waiting in poll() with the
> relevant events member set to POLLIN.
>  
> Whenever the phone is turned off or the USB cable is pulled from main
> computer port, the opps occurs with 100% repeatability.  The overall
system
> remains responsive to other activity but the USB subsystem completely
dies.

Is there an oops if the device is _not_ opened?

        Regards
                Oliver





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to