public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Behavior of serial usb driver when unplugged
@ 2004-06-08 15:49 Byron Stanoszek
  2004-06-09 19:26 ` [linux-usb-devel] " Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Byron Stanoszek @ 2004-06-08 15:49 UTC (permalink / raw)
  To: linux-usb-devel, linux-kernel

Hi all,

I'm currently using Linux (2.6.7-rc3) in an embedded system with a 8-port
Sealevel SeaLink 2802 USB device. This is a 8-port RS-232/422 device that
allocates /dev/ttyUSB0 through /dev/ttyUSB7 when plugged in.

If I have a process talking to one of the ports, e.g. 'cat < /dev/ttyUSB0', and
I unplug the USB hub, all ports except ttyUSB0 unregister properly.

Without killing the 'cat' process, plugging the hub back in will make it
allocate /dev/ttyUSB1 through /dev/ttyUSB8, thereby offsetting each USB port#
by 1.

When killing the 'cat' process at this point, the kernel reports:

drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb
drivers/usb/serial/ftdi_sio.c: Error from DTR LOW urb
drivers/usb/serial/ftdi_sio.c: Error from RTS LOW urb

and then unregisters /dev/ttyUSB0.


Is there a way to allow "hotplug" of a USB device to reuse /dev/ttyUSB0
regardless if an application still has that particular tty open?

If not, is there a way I could make the serial subsystem can send an EIO errno
or some other notification when the serial device is disconnected?

Thanks for your help,
  -Byron

--
Byron Stanoszek                         Ph: (330) 644-3059
Systems Programmer                      Fax: (330) 644-8110
Commercial Timesharing Inc.             Email: byron@comtime.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-11  3:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.hfqlta4.vgmer8@ifi.uio.no>
     [not found] ` <fa.ddnp9ml.1i4qprn@ifi.uio.no>
2004-06-11  3:21   ` [linux-usb-devel] Behavior of serial usb driver when unplugged Robert Hancock
2004-06-08 15:49 Byron Stanoszek
2004-06-09 19:26 ` [linux-usb-devel] " Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox