Re: FTDI driver in Linux

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

 



Please check below

15.10.2014 18:00, Johan Hovold пишет:
[ Adding linux-usb to CC. ]

On Wed, Oct 15, 2014 at 03:55:15PM +0400, Victor Ashik wrote:
Hello Johan,

Sorry for asking you directly, I found your address in the top comment of
ftdi_sio.c in Linux sources.  I think that you know a short answer to my
question. Sorry for a long explanation below, I am trying to be as specific
as possible.

I am trying to get my decade-old FTDI 8U100AX-based USB-serial converter
working with Linux. I checked that it works with NetBSD and does not work
with Linux.

On Linux I see error messages in dmesg:
[53627.263480] ftdi_sio ttyUSB0: Unable to read latency timer: -32
[53627.264295] ftdi_sio ttyUSB0: Unable to write latency timer: -32

The driver should still work even if the device doesn't support setting
the latency timer.

RX/DX leds on connected via USB-Serial analog modem are blinking very fast
and I do not get correct response from the modem to AT commands.

I am trying to realize what is going on by looking at the code. I found
that my defice may require the extra byte transmitted with the data:

https://github.com/juanfra684/netbsd-src/blob/b00c2cff78f467ead9e6468be4379e23bfc8c33f/sys/dev/usb/uftdi.c#L221

  Was that this support dropped from the code? Or was it there at all?

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/usb/serial/ftdi_sio.c?id=refs/tags/v3.17#n1915

No, we're still supposed to support the legacy SIO type of devices,
although that code doesn't get much testing I'm afraid.

But let's start with verifying that the type is actually detected.

Could you post the kernel log from when plugging the device in along
with the "lsusb -v" output for it?

[83986.455025] usb 1-1.2: New USB device found, idVendor=0403, idProduct=8372 [83986.455029] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[83986.455031] usb 1-1.2: Product: USB Serial Converter
[83986.455032] usb 1-1.2: Manufacturer: FTDI
[83986.455033] usb 1-1.2: SerialNumber: FT00026B
[83986.472948] ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected
[83986.472972] usb 1-1.2: Detected SIO
[83986.472974] usb 1-1.2: Number of endpoints 2
[83986.472975] usb 1-1.2: Endpoint 1 MaxPacketSize 64
[83986.472976] usb 1-1.2: Endpoint 2 MaxPacketSize 64
[83986.472977] usb 1-1.2: Setting MaxPacketSize 64
[83986.473150] ftdi_sio ttyUSB0: Unable to read latency timer: -32
[83986.473626] ftdi_sio ttyUSB0: Unable to write latency timer: -32
[83986.473673] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0

Bus 001 Device 010: ID 0403:8372 Future Technology Devices International, Ltd FT8U100AX Serial Port
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0403 Future Technology Devices International, Ltd
  idProduct          0x8372 FT8U100AX Serial Port
  bcdDevice            0.01
  iManufacturer           1
  iProduct                2
  iSerial                 3
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          2
    bmAttributes         0x20
      (Missing must-be-set bit!)
      (Bus Powered)
      Remote Wakeup
    MaxPower               60mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              2
      iInterface              2
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux