]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
usb: Allow up to 7 storage devices
authorSimon Glass <sjg@chromium.org>
Sun, 3 Jan 2016 20:50:30 +0000 (13:50 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 7 Jan 2016 17:27:07 +0000 (10:27 -0700)
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>
common/usb_storage.c
include/usb.h

index 4fa6538db58af627ffce1ae39b29e84ab2c6b510..e61a8c8adfd02e82c320169dc6da9e28f515d8ef 100644 (file)
@@ -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];
index 253936456595b18e0cb477a0c999f96cf4e2004a..0b410b6cd10b6cece52ba0748be4ff83b768f573 100644 (file)
@@ -227,7 +227,7 @@ int board_usb_cleanup(int index, enum usb_init_type init);
 
 #ifdef CONFIG_USB_STORAGE
 
-#define USB_MAX_STOR_DEV 5
+#define USB_MAX_STOR_DEV 7
 block_dev_desc_t *usb_stor_get_dev(int index);
 int usb_stor_scan(int mode);
 int usb_stor_info(void);