Re: [PATCH 5/7] usb: bdc: driver runs out of buffer descriptors on large ADB transfers

From: Florian Fainelli
Date: Fri Jul 17 2020 - 12:58:16 EST




On 7/17/2020 8:23 AM, Al Cooper wrote:
> Version v1.0.40 of the Android host ADB software increased maximum
> transfer sizes from 256K to 1M. Since the STB ADB gadget driver
> requests only 16K at a time, the BDC driver ran out of buffer
> descriptors (BDs) if the queuing happens faster than the incoming
> 16K transfers. This issue is fixed by doubling the number of BDs
> that can be queued so that the entire 1M request can be queued
> without running out of buffers.
>
> Signed-off-by: Al Cooper <alcooperx@xxxxxxxxx>
> Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>

You can certainly remove my SoB here, since you are carrying your own
patch, thanks!
--
Florian