Steve Underwood wrote:

> Hi,
> 
> In about June we fixed the Linux driver for the TUSB3410, and got the
> USB FET tools working under Linux. Did anyone feed the fix back to the
> driver's maintainer, so it can get into the standard Linux distribution?
> If not we need to sort that out now.
> 
> Steve
> 

  I had it somewhat working up to some months ago, but I decided to upgrade
to 2.6.24rc7 linux kernel, where I hadn't been so successful.

  I applied the patch here[1] from Oleg Verych which I think should be
enough as what code patching refers. And then I wanted to proceed with the
sysfs writing to change device configuration, this is echo "2"
> /sys/devices/pci0000:00/0000:00:1d.1/usb2/2-2/bConfigurationValue but I
had this error:
bash: echo: write error: Invalid argument

  Which is sensible since "cat bNumConfigurations" returns 1. So I have the
suspicion that someone touched anything on the usb-serial driver that broke
this driver.

  This is the dmesg output once the driver is plugged:

usb 2-2: new full speed USB device using uhci_hcd and address 13
usb 2-2: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: Had to override the open usb serial
operation with the generic one.
drivers/usb/serial/usb-serial.c: Had to override the write usb serial
operation with the generic one.
drivers/usb/serial/usb-serial.c: Had to override the close usb serial
operation with the generic one.
drivers/usb/serial/usb-serial.c: Had to override the write_room usb serial
operation with the generic one.
drivers/usb/serial/usb-serial.c: Had to override the chars_in_buffer usb
serial operation with the generic one.
drivers/usb/serial/usb-serial.c: Had to override the read_bulk_callback usb
serial operation with the generic one.
drivers/usb/serial/usb-serial.c: Had to override the write_bulk_callback usb
serial operation with the generic one.
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for TI USB
3410 1 port adapter
drivers/usb/serial/usb-serial.c: USB Serial support registered for TI USB
5052 2 port adapter
drivers/usb/serial/usb-serial.c: static descriptor matches
drivers/usb/serial/usb-serial.c: found bulk out on endpoint 0
drivers/usb/serial/usb-serial.c: wrong number of endpoints
ti_usb_3410_5052: probe of 2-2:1.0 failed with error -5
usbcore: registered new interface driver ti_usb_3410_5052
/usr/src/linux-2.6/drivers/usb/serial/ti_usb_3410_5052.c: TI USB 3410/5052
Serial Driver v0.9

I'm also attaching a detailed description of the usb interface for the
device using usbview.

I'm investigating about it but any info is welcome.

Thanks and regards,

[1]
http://www.mail-archive.com/linux-usb-devel%40lists.sourceforge.net/msg51855.html

-- 
Raúl Sánchez Siles
MSP-FET430UIF JTAG Tool
Manufacturer: Texas Instruments
Serial Number: TUSB3410112182D8D755FFAD
Speed: 12Mb/s (full)
USB Version:  1.10
Device Class: ff(vend.)
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Vendor Id: 0451
Product Id: f430
Revision Number:  1.01

Config Number: 1
        Number of Interfaces: 1
        Attributes: 80
        MaxPower Needed: 100mA

        Interface Number: 0
                Name: (none)
                Alternate Number: 0
                Class: ff(vend.) 
                Sub Class: 00
                Protocol: 00
                Number of Endpoints: 1

                        Endpoint Address: 01
                        Direction: out
                        Attribute: 2
                        Type: Bulk
                        Max Packet Size: 64
                        Interval: 0ms

Reply via email to