diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-03 13:50:30 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-01-07 10:27:07 -0700 |
commit | 70caa97108d790e5779b347a8530b130df9f000a (patch) | |
tree | f05ccb40de50fbff41d0b89f49116e794e8c3ee2 /common | |
parent | b042566dcf0225f89026113ac24b9bffb9546684 (diff) | |
download | u-boot-imx-70caa97108d790e5779b347a8530b130df9f000a.zip u-boot-imx-70caa97108d790e5779b347a8530b130df9f000a.tar.gz u-boot-imx-70caa97108d790e5779b347a8530b130df9f000a.tar.bz2 |
usb: Allow up to 7 storage devices
The current limit of 5 is not enough for the driver model USB tests. Really
we should not have a limit but the driver model code still uses the
usb_dev_desc[] array, which has a limit.
Increasing the limit by 2 should not bother anyone. Adjust it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/usb_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb_storage.c b/common/usb_storage.c index 4fa6538..e61a8c8 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -65,7 +65,7 @@ static const unsigned char us_direction[256/8] = { static ccb usb_ccb __attribute__((aligned(ARCH_DMA_MINALIGN))); static __u32 CBWTag; -#define USB_MAX_STOR_DEV 5 +#define USB_MAX_STOR_DEV 7 static int usb_max_devs; /* number of highest available usb device */ static block_dev_desc_t usb_dev_desc[USB_MAX_STOR_DEV]; |