[PATCH 02/10] USB: reduce USB_MAXCHILDREN on imported ch11.h

Sebastian Hesselbarth sebastian.hesselbarth at gmail.com
Wed Jul 23 06:51:43 PDT 2014


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 at gmail.com>
---
To: Sascha Hauer <s.hauer at pengutronix.de>
Cc: barebox at lists.infradead.org
---
 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




More information about the barebox mailing list