[PATCH] usb: dwc2: Set max xfer length to speed up R/W

cheng lu lc07446214 at gmail.com
Wed Mar 24 12:59:35 CET 2021


Ok, I will check.

On Wed, Mar 24, 2021 at 7:39 PM Marek Vasut <marex at denx.de> wrote:

> On 3/24/21 7:11 AM, Cheng Lu wrote:
> > Set transfer length to the maximum (65535 * 512) Bytes
> > of SCSI READ(10) and WRITE(10) commands, while default
> > transfer length is (20 * 512) Bytes
>
> Please have a look at these four patches, increasing the transfer length
> would make some odd USB pen drives fail:
>
> 7d6fd7f0ba7 ("usb: storage: Limit transfer size to 120 kiB")
> da3d1c499fb ("usb: storage: Only clear READY flag on error")
> 02b0e1a36c5 ("usb: ehci-hcd: Keep async schedule running")
> 31232de07ef ("usb: Keep async schedule running only across mass storage
> xfers")
>
> Use the async schedule to avoid stopping the controller after every
> transfer and thus keep the throughput high, while avoiding very long
> transfers which might break odd USB pen drives.
>


More information about the U-Boot mailing list