[U-Boot] [PATCH] usb: Alloc buffer for USB descriptor dynamically
Simon Glass
sjg at chromium.org
Fri Dec 18 23:41:10 CET 2015
Hi,
On 17 December 2015 at 18:07, Stefan Brüns <stefan.bruens at rwth-aachen.de> wrote:
> The configuration descriptor includes all interface, endpoint and
> auxiliary descriptors (e.g. report, union) so 512 bytes may not be enough.
>
> Signed-off-by: Stefan Brüns <stefan.bruens at rwth-aachen.de>
> ---
> common/usb.c | 41 +++++++++++++++++++++++++++--------------
> include/usb.h | 5 +++--
> 2 files changed, 30 insertions(+), 16 deletions(-)
Won't this call malloc() on every request? Can we avoid that?
Regards,
Simon
More information about the U-Boot
mailing list