]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
usb: gadget: storage: Increase FSG_BUFLEN
authorMarek Vasut <marex@denx.de>
Thu, 19 Oct 2017 19:45:53 +0000 (21:45 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 26 Nov 2017 01:22:36 +0000 (02:22 +0100)
Increase the buffer length to be just above maximum permissible value
of 128 kiB . This increases the performance of the UMS and alike by a
factor of 2 - 2.5 as the buffers are less fragmented.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Lukasz Majewski <lukma@denx.de>
drivers/usb/gadget/storage_common.c

index b6df130a1405bc94328084f519de0c7fe56eda8f..4d5a9a8c423cc2e96cc4868d7cdacad1dd14ad66 100644 (file)
@@ -309,7 +309,7 @@ static struct fsg_lun *fsg_lun_from_dev(struct device *dev)
 #define FSG_NUM_BUFFERS        2
 
 /* Default size of buffer length. */
-#define FSG_BUFLEN     ((u32)16384)
+#define FSG_BUFLEN     ((u32)131072)
 
 /* Maximal number of LUNs supported in mass storage function */
 #define FSG_MAX_LUNS   8