usb: Alloc buffer for USB descriptor dynamically
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Tue, 22 Dec 2015 00:18:13 +0000 (01:18 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 31 Dec 2015 09:05:31 +0000 (10:05 +0100)
commitc75f57fba4712fed1b0f7b9b10c2bbfdb9ede449
tree0266dc3aca10dca86b9881543edc738718105963
parent78680314c53a95c0bb25e942662979843b60d7b9
usb: Alloc buffer for USB descriptor dynamically

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@rwth-aachen.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/usb.c
include/usb.h