]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: gadget: storage-common: Set FSG_MAX_LUNS to 16
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Mon, 20 Jul 2015 18:15:19 +0000 (20:15 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Jul 2015 14:59:19 +0000 (09:59 -0500)
Mass storage spec allows up to 16 LUNs, so let's not
add some more restrictive limits.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_mass_storage.c
drivers/usb/gadget/function/storage_common.h

index c3b62c7cb58425fab65a1c3af8dfba389a856e8f..9e88e2b18d95e7919c85cada4c5fa831a3ed9741 100644 (file)
@@ -54,7 +54,7 @@
  * following fields:
  *
  *     nluns           Number of LUNs function have (anywhere from 1
- *                             to FSG_MAX_LUNS which is 8).
+ *                             to FSG_MAX_LUNS).
  *     luns            An array of LUN configuration values.  This
  *                             should be filled for each LUN that
  *                             function will include (ie. for "nluns"
index 70c891469f574ebd1d7719fc05bcf838d1d6e3cb..c3544e61da6690f2b377e0a8e2cc8e7f835389ea 100644 (file)
@@ -123,7 +123,7 @@ static inline bool fsg_lun_is_open(struct fsg_lun *curlun)
 #define FSG_BUFLEN     ((u32)16384)
 
 /* Maximal number of LUNs supported in mass storage function */
-#define FSG_MAX_LUNS   8
+#define FSG_MAX_LUNS   16
 
 enum fsg_buffer_state {
        BUF_STATE_EMPTY = 0,