From: Gilles Doffe Date: Wed, 13 Nov 2019 03:58:37 -0500 (EST) Subject: [U-Boot] [PATCH] usb: ehci: add ehci max xfer size ehci config entry In-Reply-To: <1eae71a4-3ed5-97a8-a869-f157b8f42119@denx.de> References: <20191025143015.10102-1-gilles.doffe@savoirfairelinux.com> <1eae71a4-3ed5-97a8-a869-f157b8f42119@denx.de> Message-ID: <1050924206.334785.1573635517241.JavaMail.zimbra@savoirfairelinux.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de ----- Le 28 Oct 19, à 23:46, Marek Vasut marex at denx.de a écrit : > On 10/28/19 6:35 PM, Robert Hancock wrote: >> On 2019-10-25 8:30 a.m., 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/78d49f89e1dd9bdfa891389343bc3016bcaaeee4 > https://gitlab.denx.de/u-boot/custodians/u-boot-usb/commit/b43c016256a5eb1070fbca24309e0e66590b7771 > https://gitlab.denx.de/u-boot/custodians/u-boot-usb/commit/4bf7e8b7ad6231cf161fcf95d5c3cc6f1de9fff9 Indeed it could solve the problem. I was not aware of this repo, so I missed it. Thanks for pointing me on it. I'll give it a try.