Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: storage-common: Set FSG_MAX_LUNS to 16

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>

authored by

Krzysztof Opasiak and committed by
Felipe Balbi
75ddead2 bab7a1f1

+2 -2
+1 -1
drivers/usb/gadget/function/f_mass_storage.c
··· 54 54 * following fields: 55 55 * 56 56 * nluns Number of LUNs function have (anywhere from 1 57 - * to FSG_MAX_LUNS which is 8). 57 + * to FSG_MAX_LUNS). 58 58 * luns An array of LUN configuration values. This 59 59 * should be filled for each LUN that 60 60 * function will include (ie. for "nluns"
+1 -1
drivers/usb/gadget/function/storage_common.h
··· 123 123 #define FSG_BUFLEN ((u32)16384) 124 124 125 125 /* Maximal number of LUNs supported in mass storage function */ 126 - #define FSG_MAX_LUNS 8 126 + #define FSG_MAX_LUNS 16 127 127 128 128 enum fsg_buffer_state { 129 129 BUF_STATE_EMPTY = 0,