diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2014-07-23 15:51:43 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-24 08:57:57 +0200 |
commit | 73476de0e04f6dd8d136295471bcab5fe6894a2a (patch) | |
tree | 68a4d670d946775f5ac9536fa6b590f2701e6a93 /include | |
parent | bfea72da82fe7f324dd4504576dff7b76173dc79 (diff) | |
download | barebox-73476de0e04f6dd8d136295471bcab5fe6894a2a.tar.gz barebox-73476de0e04f6dd8d136295471bcab5fe6894a2a.tar.xz |
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 <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb/ch11.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |