ftdi_sio device hung after boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   Please excuse my presumption from bothering the list with something that
is probably an implementation problem by the manufacturer.  I thought I
would take this "shot in the dark" in case you all have something to
suggest. I'm running SL6 (like RHEL6) with kernel 2.6.32, and seem to have
the 1.5.0 version of the ftdi_sio driver.  My program works fine, but hangs
just after the machine has been booted.  If I cycle the power to the
Thorlabs TDC001 motor controller, my program then works until the next boot.
 This will not be convenient when we send this instrument to the observatory.  

Here's the system seeing the device:

Apr 28 13:59:03 archelon kernel: usb 3-9: new full speed USB device number 4 usi
ng xhci_hcd
Apr 28 13:59:03 archelon kernel: usb 3-9: New USB device found, idVendor=0403, i
dProduct=faf0
Apr 28 13:59:03 archelon kernel: usb 3-9: New USB device strings: Mfr=1, Product
=2, SerialNumber=3
Apr 28 13:59:03 archelon kernel: usb 3-9: Product: APT DC Motor Controller
Apr 28 13:59:03 archelon kernel: usb 3-9: Manufacturer: Thorlabs
Apr 28 13:59:03 archelon kernel: usb 3-9: SerialNumber: 83850633
Apr 28 13:59:03 archelon kernel: usb 3-9: configuration #1 chosen from 1 choice
Apr 28 13:59:03 archelon kernel: usbcore: registered new interface driver usbser
ial
Apr 28 13:59:03 archelon kernel: USB Serial support registered for generic
Apr 28 13:59:03 archelon kernel: usbcore: registered new interface driver usbser
ial_generic
Apr 28 13:59:03 archelon kernel: usbserial: USB Serial Driver core
Apr 28 13:59:03 archelon kernel: USB Serial support registered for FTDI USB Seri
al Device
Apr 28 13:59:03 archelon kernel: ftdi_sio 3-9:1.0: FTDI USB Serial Device conver
ter detected
Apr 28 13:59:03 archelon kernel: usb 3-9: Detected FT232RL
Apr 28 13:59:03 archelon kernel: usb 3-9: Number of endpoints 2
Apr 28 13:59:03 archelon kernel: usb 3-9: Endpoint 1 MaxPacketSize 64
Apr 28 13:59:03 archelon kernel: usb 3-9: Endpoint 2 MaxPacketSize 64
Apr 28 13:59:03 archelon kernel: usb 3-9: Setting MaxPacketSize 64
Apr 28 13:59:03 archelon kernel: usb 3-9: FTDI USB Serial Device converter now a
ttached to ttyUSB0
Apr 28 13:59:03 archelon kernel: usbcore: registered new interface driver ftdi_s
io
Apr 28 13:59:03 archelon kernel: ftdi_sio: v1.5.0:USB FTDI Serial Converters Dri
ver

As you see, it properly can talk to the device and get configuration info
from it.

Here is some usbmon output when it is hung:

ffff880431c03540 4282392379 S Co:3:005:0 s 40 09 0001 0000 0000 0
ffff880431c03540 4282392453 C Co:3:005:0 0 0
ffff880431c03540 4282392474 S Co:3:005:0 s 40 00 0000 0000 0000 0
ffff880431c03540 4282392527 C Co:3:005:0 0 0
ffff880431c03540 4282392572 S Co:3:005:0 s 40 04 0008 0000 0000 0
ffff880431c03540 4282392619 C Co:3:005:0 0 0
ffff880431c03540 4282392648 S Co:3:005:0 s 40 03 001a 0000 0000 0
ffff880431c03540 4282392692 C Co:3:005:0 0 0
ffff880431c03540 4282392718 S Co:3:005:0 s 40 02 0000 0100 0000 0
ffff880431c03540 4282392762 C Co:3:005:0 0 0
ffff8804333c2180 4282392789 S Bi:3:005:1 -115 512 <
ffff880431c03540 4282392797 S Co:3:005:0 s 40 01 0303 0000 0000 0
ffff8804333c2180 4282392812 C Bi:3:005:1 0 2 = 1160
ffff8804333c2180 4282392815 S Bi:3:005:1 -115 512 <
ffff880431c03540 4282392868 C Co:3:005:0 0 0
ffff880431c03540 4282393166 S Co:3:005:0 s 40 04 0008 0000 0000 0
ffff880431c03540 4282393217 C Co:3:005:0 0 0
ffff880431c03540 4282393308 S Co:3:005:0 s 40 03 001a 0000 0000 0
ffff880431c03540 4282393358 C Co:3:005:0 0 0
ffff880431c03540 4282393399 S Co:3:005:0 s 40 02 0000 0100 0000 0
ffff880431c03540 4282393442 C Co:3:005:0 0 0
ffff880431c03540 4282393475 S Ci:3:005:0 s c0 05 0000 0000 0002 2 <
ffff880431c03540 4282393523 C Ci:3:005:0 0 2 = 1160
ffff880431c03540 4282393546 S Co:3:005:0 s 40 01 0303 0000 0000 0
ffff880431c03540 4282393580 C Co:3:005:0 0 0
ffff880431c03540 4282393607 S Bo:3:005:2 -115 6 = 23020000 0000
ffff880431c03540 4282393632 C Bo:3:005:2 0 6 >
ffff8804333c2180 4282393773 C Bi:3:005:1 0 2 = 1100
ffff8804333c2180 4282393776 S Bi:3:005:1 -115 512 <
ffff8804333c2180 4282394813 C Bi:3:005:1 0 2 = 1160
ffff8804333c2180 4282394820 S Bi:3:005:1 -115 512 <
ffff8804333c2180 4282395813 C Bi:3:005:1 0 2 = 1160
ffff8804333c2180 4282395820 S Bi:3:005:1 -115 512 <

Last two lines repeat for as long as I've looked.

Thanks for any attention and light you can shed on this.


--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux