From 73476de0e04f6dd8d136295471bcab5fe6894a2a Mon Sep 17 00:00:00 2001 From: Sebastian Hesselbarth Date: Wed, 23 Jul 2014 15:51:43 +0200 Subject: USB: reduce USB_MAXCHILDREN on imported ch11.h 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 Signed-off-by: Sascha Hauer --- 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 331499d597..924a9ea64c 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 -- cgit v1.2.3