Commit 70caa97108d790e5779b347a8530b130df9f000a

Authored by Simon Glass
1 parent b042566dcf

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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

common/usb_storage.c
... ... @@ -65,7 +65,7 @@
65 65 static ccb usb_ccb __attribute__((aligned(ARCH_DMA_MINALIGN)));
66 66 static __u32 CBWTag;
67 67  
68   -#define USB_MAX_STOR_DEV 5
  68 +#define USB_MAX_STOR_DEV 7
69 69 static int usb_max_devs; /* number of highest available usb device */
70 70  
71 71 static block_dev_desc_t usb_dev_desc[USB_MAX_STOR_DEV];
... ... @@ -227,7 +227,7 @@
227 227  
228 228 #ifdef CONFIG_USB_STORAGE
229 229  
230   -#define USB_MAX_STOR_DEV 5
  230 +#define USB_MAX_STOR_DEV 7
231 231 block_dev_desc_t *usb_stor_get_dev(int index);
232 232 int usb_stor_scan(int mode);
233 233 int usb_stor_info(void);