Re: [PATCH] usb bulk transfer: 1024 byte packets



On Fri, 13 Apr 2007 12:56:47 -0400, "Jeremy C. Andrus" <jeremy@xxxxxxxxxxx> wrote:

I recently ran into a couple of USB devices which insisted on using 1024
byte packets in bulk transfer mode (despite the hard limit of 512
established in the spec). I really wanted to use these devices, so I
created a kernel patch which allows the use of 1024 byte URBs, but does
not interfere with normal (512 byte) operation. I did this through a
bit in the transfer_flags bitfield.

The transfer size in the URB is not limited by the maximum packet size.
The HC driver splits up the transfer as specified by URB into the required
number of packets.

I think you might want to write to linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx
to discuss the specifics of what it mean "devices insisted on 1024".
I presume the devices didn't show up on your doorstep with baseball
bats to have a little chat. So there must be a specific failure symptom.
Until you share it, I don't see this patch going anywhere.

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Cause of Dropped HS ISO Packets?
    ... I am going to try tomorrow to switch back to ASAP for all scheduling and see if that improves anything. ... because of your restriction to 8packets and not adventuring to ... I have done this in the past and I was actually pretty impressed with how consistently the completion routines were called. ... One thing that did occur to me regarding URB scheduling and so-forth is that scheduling a URB with the HC driver is not the same as actually having it scheduled with the HC. ...
    (microsoft.public.development.device.drivers)
  • Re: bulkusb sample
    ... You can send an URB for virtually any transfer size. ... The host controller will ensure that the packets sent over the wire are not more than the endpoint's MaxPacketSize. ... Now, my guess is that your device is full speed and not high speed, in which case 64 bytes for MaxPacket makes sense. ... The maximum packet size of a pipe is specified in the USB ...
    (microsoft.public.development.device.drivers)
  • Re: [PATCH] usb bulk transfer: 1024 byte packets
    ... The transfer size in the URB is not limited by the maximum packet ... The HC driver splits up the transfer as specified by URB into ... the required number of packets. ...
    (Linux-Kernel)
  • Re: [PATCH] usb bulk transfer: 1024 byte packets
    ... The HC driver splits up the transfer as specified by URB into ... the required number of packets. ... no matter what direction. ...
    (Linux-Kernel)
  • IPsec AH failure over IPv6
    ... Tcpdump reads the packets but they are not passed on to netperf. ... Is there a kernel patch ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)