
On 11/13/19 9:58 AM, Gilles Doffe wrote: [...]
Some USB sticks cannot handle SIZE_MAX bytes (65535) blocks transfer, leading to 'EHCI timed out on TD' errors. As it is hardly predictable, this commit adds a configuration option to easily reduce this EHCI max transfer size. The default value is 65535 which corresponds to size_t max value (SIZE_MAX).
This doesn't seem like an ideal solution, as one would have to rebuild U-Boot to cope with such a device. Do you know how the Linux kernel EHCI driver deals with this problem?
I presume this is already fixed in u-boot-usb/next by: https://gitlab.denx.de/u-boot/custodians/u-boot-usb/commit/78d49f89e1dd9bdfa... https://gitlab.denx.de/u-boot/custodians/u-boot-usb/commit/b43c016256a5eb107... https://gitlab.denx.de/u-boot/custodians/u-boot-usb/commit/4bf7e8b7ad6231cf1...
Indeed it could solve the problem. I was not aware of this repo, so I missed it.
It's a downstream custodian repository. The patches are now in U-Boot master as well, so you can again forget about this repository.
Thanks for pointing me on it. I'll give it a try.
Great, thanks. Please let me know how it went.