[Ftdi-usb-sio-devel] Fwd: Interleaved write/read operations on ftdi_sio seem to cause an error
Brought to you by:
bryder
From: Toan P. <tph...@gm...> - 2009-01-28 14:41:14
|
Bill Ryder, This bug seem very related to the bus disconnect and reconnect problem that I discussed to you about a month ago. What happened was: we had 4 keypads on a USB bus which sends and receive data to the linux host in relatively low bandwidth, approximately 4 bytes per Endpoint transaction per keypad per .3 second. Running at this rate, we experience approximately 5 disconnection-reconnection per day per system (usb bus). In many cases, our application is able to redetect and communicate with keypads with has been disconnected/reconnected. In some rare cases, physical disconnect and reconnect of a device is required for our application to talk to it. Here is a dmesg of one system running UBUNTU : -------------------------------------------------------------------------------------------------- [358472.160465] hub 3-0:1.0: port 2 disabled by hub (EMI?), re-enabling... [358472.160491] usb 3-2: USB disconnect, address 8 [358472.160494] usb 3-2.1: USB disconnect, address 15 [358472.160632] ftdi_sio 3-2.1:1.0: device disconnected [358472.160747] usb 3-2.2: USB disconnect, address 10 [358472.160839] ftdi_sio 3-2.2:1.0: device disconnected [358472.160942] usb 3-2.3: USB disconnect, address 11 [358472.161028] ftdi_sio 3-2.3:1.0: device disconnected [358472.161126] usb 3-2.4: USB disconnect, address 14 [358472.161209] ftdi_sio 3-2.4:1.0: device disconnected [358472.272338] usb 3-2: new full speed USB device using uhci_hcd and address 16 [358472.273327] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb [358472.273400] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW [358472.273794] ftdi_sio ttyUSB2: FTDI USB Serial Device converter now disconnected from ttyUSB2 [358472.282327] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb [358472.282403] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW [358472.282781] ftdi_sio ttyUSB3: FTDI USB Serial Device converter now disconnected from ttyUSB3 [358472.290235] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb [358472.290309] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW [358472.290691] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 [358472.383373] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb [358472.383425] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW [358472.383809] ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1 [358472.415852] usb 3-2: configuration #1 chosen from 1 choice [358472.418784] hub 3-2:1.0: USB hub found [358472.420745] hub 3-2:1.0: 4 ports detected [358472.749410] usb 3-2.1: new full speed USB device using uhci_hcd and address 17 [358472.908371] usb 3-2.1: configuration #1 chosen from 1 choice [358472.911319] ftdi_sio 3-2.1:1.0: FTDI USB Serial Device converter detected [358472.911350] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: Detected FT232RL [358472.911498] usb 3-2.1: FTDI USB Serial Device converter now attached to ttyUSB0 [358473.136029] usb 3-2.2: new full speed USB device using uhci_hcd and address 18 [358473.295999] usb 3-2.2: configuration #1 chosen from 1 choice [358473.298945] ftdi_sio 3-2.2:1.0: FTDI USB Serial Device converter detected [358473.298977] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: Detected FT232RL [358473.299129] usb 3-2.2: FTDI USB Serial Device converter now attached to ttyUSB1 [358473.519654] usb 3-2.3: new full speed USB device using uhci_hcd and address 19 [358473.679628] usb 3-2.3: configuration #1 chosen from 1 choice [358473.682569] ftdi_sio 3-2.3:1.0: FTDI USB Serial Device converter detected [358473.682602] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: Detected FT232RL [358473.682749] usb 3-2.3: FTDI USB Serial Device converter now attached to ttyUSB2 [358473.903279] usb 3-2.4: new full speed USB device using uhci_hcd and address 20 [358474.063248] usb 3-2.4: configuration #1 chosen from 1 choice [358474.066194] ftdi_sio 3-2.4:1.0: FTDI USB Serial Device converter detected [358474.066227] /build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: Detected FT232RL [358474.066374] usb 3-2.4: FTDI USB Serial Device converter now attached to ttyUSB3 ANOTHER DMESG OF A SYSTEM RUNNING T2 (OUR CUSTOMIZED EMBEDDED LINUX OS) ----------------------------------------------------------------------------------------------------------------- usb 2-1: USB disconnect, address 28 usb 2-1.1: USB disconnect, address 29 ftdi_sio 2-1.1:1.0: device disconnected usb 2-1.2: USB disconnect, address 30 drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW ftdi_sio 2-1.2:1.0: device disconnected usb 2-1.3: USB disconnect, address 31 ftdi_sio 2-1.3:1.0: device disconnected usb 2-1.4: USB disconnect, address 32 ftdi_sio 2-1.4:1.0: device disconnected usb 2-1: clear tt 1 (9201) error -108 usb 2-1: clear tt 1 (91f1) error -19 ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1 ftdi_sio ttyUSB3: FTDI USB Serial Device converter now disconnected from ttyUSB3 drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW ftdi_sio ttyUSB2: FTDI USB Serial Device converter now disconnected from ttyUSB2 usb 2-1: new high speed USB device using ehci_hcd and address 33 usb 2-1: configuration #1 chosen from 1 choice hub 2-1:1.0: USB hub found hub 2-1:1.0: 4 ports detected usb 2-1.1: new full speed USB device using ehci_hcd and address 34 usb 2-1.1: configuration #1 chosen from 1 choice ftdi_sio 2-1.1:1.0: FTDI USB Serial Device converter detected drivers/usb/serial/ftdi_sio.c: Detected FT232RL usb 2-1.1: FTDI USB Serial Device converter now attached to ttyUSB0 usb 2-1.2: new full speed USB device using ehci_hcd and address 35 usb 2-1.2: configuration #1 chosen from 1 choice ftdi_sio 2-1.2:1.0: FTDI USB Serial Device converter detected drivers/usb/serial/ftdi_sio.c: Detected FT232RL usb 2-1.2: FTDI USB Serial Device converter now attached to ttyUSB1 usb 2-1.3: new full speed USB device using ehci_hcd and address 36 usb 2-1.3: configuration #1 chosen from 1 choice ftdi_sio 2-1.3:1.0: FTDI USB Serial Device converter detected drivers/usb/serial/ftdi_sio.c: Detected FT232RL usb 2-1.3: FTDI USB Serial Device converter now attached to ttyUSB2 usb 2-1.4: new full speed USB device using ehci_hcd and address 37 usb 2-1.4: configuration #1 chosen from 1 choice ftdi_sio 2-1.4:1.0: FTDI USB Serial Device converter detected drivers/usb/serial/ftdi_sio.c: Detected FT232RL usb 2-1.4: FTDI USB Serial Device converter now attached to ttyUSB3 usb 2-1.4: USB disconnect, address 37 ftdi_sio 2-1.4:1.0: device disconnected usb 2-1.4: new full speed USB device using ehci_hcd and address 38 drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW ftdi_sio ttyUSB3: FTDI USB Serial Device converter now disconnected from ttyUSB3 usb 2-1.4: configuration #1 chosen from 1 choice ftdi_sio 2-1.4:1.0: FTDI USB Serial Device converter detected drivers/usb/serial/ftdi_sio.c: Detected FT232RL usb 2-1.4: FTDI USB Serial Device converter now attached to ttyUSB3 usb 2-1.4: USB disconnect, address 38 ftdi_sio 2-1.4:1.0: device disconnected drivers/usb/serial/ftdi_sio.c: error from flowcontrol urb drivers/usb/serial/ftdi_sio.c: update_mctrl Error from MODEM_CTRL urb: DTR LOW, RTS LOW ftdi_sio ttyUSB3: FTDI USB Serial Device converter now disconnected from ttyUSB3 usb 2-1.4: new full speed USB device using ehci_hcd and address 39 usb 2-1.4: configuration #1 chosen from 1 choice ftdi_sio 2-1.4:1.0: FTDI USB Serial Device converter detected drivers/usb/serial/ftdi_sio.c: Detected FT232RL usb 2-1.4: FTDI USB Serial Device converter now attached to ttyUSB3 I've just ordered the TOTAL PHASE Beagle USB 480 Protocol analyzer with hardware filtering. Hopefully in the next few days, I'd be able to findout what really happened. Toan On Wed, Jan 28, 2009 at 3:57 AM, Bill Ryder <bil...@gm...> wrote: > This bit is suspicious: > > [72206.721645] /tmp/linux-2.6.27.9/drivers/ > usb/serial/ftdi_sio.c: (this > is ok on close) nonzero read bulk status received: -75 > [72206.721652] /tmp/linux-2.6.27.9/drivers/usb/serial/ftdi_sio.c: > ftdi_write_bulk_callback - port 0 > [72206.856067] hub 4-0:1.0: port 2 disabled by hub (EMI?), re-enabling... > [72206.856076] usb 4-2: USB disconnect, address 43 > The write bulk callback gives an error then the usb stack says the hub has > disabled the port - which is probably the cause of the error. > > You could try it without the hub in the way or maybe off another usb port. > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Ftdi-usb-sio-devel mailing list > Ftd...@li... > https://lists.sourceforge.net/lists/listinfo/ftdi-usb-sio-devel > > |