Open ardje opened 1 year ago
Compiling it for an older 5.4.6 kernel on ARM gives me:
[ 129.329495] usb 1-1: new high-speed USB device number 2 using exynos-ehci
[ 129.491215] usb 1-1: New USB device found, idVendor=0403, idProduct=601f, bcdDevice= 0.00
[ 129.497985] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 129.505077] usb 1-1: Product: FTDI SuperSpeed-FIFO Bridge
[ 129.510460] usb 1-1: Manufacturer: FTDI
[ 129.514267] usb 1-1: SerialNumber: 000000000001
[ 129.519504] FT60x i/f 0 now probed: (0403:601F)
[ 129.523273] ID->bNumEndpoints: 02
[ 129.526575] ID->bInterfaceClass: FF
[ 129.530012] ED[0]->bEndpointAddress: 0x01
[ 129.534002] ED[0]->bmAttributes: 0x02
[ 129.537643] ED[0]->wMaxPacketSize: 0x0200 (512)
[ 129.542152] ED[1]->bEndpointAddress: 0x81
[ 129.546132] ED[1]->bmAttributes: 0x03
[ 129.549804] ED[1]->wMaxPacketSize: 0x0040 (64)
[ 129.554994] FT60x i/f 1 now probed: (0403:601F)
[ 129.558719] ID->bNumEndpoints: 02
[ 129.561989] ID->bInterfaceClass: FF
[ 129.565407] ED[0]->bEndpointAddress: 0x02
[ 129.569473] ED[0]->bmAttributes: 0x02
[ 129.573033] ED[0]->wMaxPacketSize: 0x0200 (512)
[ 129.577588] ED[1]->bEndpointAddress: 0x82
[ 129.581599] ED[1]->bmAttributes: 0x02
[ 129.585165] ED[1]->wMaxPacketSize: 0x0200 (512)
[ 129.589940] ft60x 1-1:1.1: USB FT60x device now attached to ft60x-192
Which is nice, but it's a headless device. Also this is USB2. So this is tested:
I do need to test the usb2 slot, as the T430 is from 2012, so there might be bugs in the xhci, but for now I assume the kernel between 5.4 and 5.16 has changed in a way that makes this driver fail. (5.4 already complains about min types though)
Confirmed: on T430 also on 5.16 the URB is shut down.
Confirmed: on a T430, after setting up the configuration and the int urb, the kernel sends a port configuration change to the usb hub for that port after which the int urb is shut down. On another thinkpad with 5.10 there are no shutdown urbs, however the qt program still reports no data transfer.
Hi guys,
I am trying to get my usb2sniffer to work, but upon pluging in, I get this:
And these are my changes:
As far as I know, these were just necessary janitory changes: usb_maxpacket had an argument that was obsolete. The maxp is still 64 for an INT message, so that looks ok. the min_t is a typed change.
I put it here as an issue because maybe someone else knows of more changes in the linux kernel, or my last few years not programming in C has made the obvious less obvious to me.
Anyway: I tried usbsniffer-qt and that seems not to get any data from the sniffer, and I suspect that's because the URB is shutdown, and hence all communication with the board has halted because we don't schedule any new interrupt polls. The USB shutdown happens on plugin. As far as I can tell, there are 2 interfaces being used.
Hmmm, I should be able to sniff what's going on with mere tcpdump...
For completeness: the usb device descriptor: