lkml.org 
[lkml]   [2008]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.26-rc2 WARNING from usb-serial, and then my gps is dead
On Wed, Jun 25, 2008 at 01:00:22PM +0200, Helge Hafting wrote:

> The problem is triggered by bending the USB cable - likely a cable fault.
> Sometimes I merely get a plain USB device disconnect. (This also
> aborts my gps logging as the gps tend to reconnect to /dev/ttyUSB1 instead
> of /dev/ttyUSB0, but I guess that is a userland issue, not a kernel
> problem. Or is this a race condition?)

That is because your userspace program still has ttyUSB0 open, so it
creates the next valid device, ttyUSB1. There is no way to connect the
new device to the old one as it has no idea it should do so.

Flaky hardware connections are not nice on drivers at times, although we
should not be crashing :)

We are probably just not handling the fact that the device is still open
properly, although I thought all of those errors were long since fixed,
perhaps the tty layer changes are now showing other inadequacies of the
usb-serial core up...

Those debug logs would be most helpful in tracking this down.

thanks,

greg k-h


\
 
 \ /
  Last update: 2008-06-26 07:45    [W:0.045 / U:3.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site