Barebox supports up to 8 USB devices attached on a Hub, Linux does 31. Reduce the USB_MAXCHILDREN define in ch11.h to the Barebox one and put a comment above. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@xxxxxxxxx> --- To: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> Cc: barebox@xxxxxxxxxxxxxxxxxxx --- include/usb/ch11.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/usb/ch11.h b/include/usb/ch11.h index 331499d597fa..924a9ea64c5e 100644 --- a/include/usb/ch11.h +++ b/include/usb/ch11.h @@ -19,8 +19,10 @@ * up to 22 devices to connect. Upcoming hardware might raise that * limit. Because the arrays need to add a bit for hub status data, we * use 31, so plus one evens out to four bytes. + * + * Reduced to 8 max children for Barebox. */ -#define USB_MAXCHILDREN 31 +#define USB_MAXCHILDREN 8 /* * Hub request types -- 2.0.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox