From: Marek Vasut Date: Thu, 19 Oct 2017 21:45:53 +0200 Subject: [U-Boot] [PATCH] usb: gadget: storage: Increase FSG_BUFLEN Message-ID: <20171019194553.28651-1-marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Cc: Lukasz Majewski --- drivers/usb/gadget/storage_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/storage_common.c b/drivers/usb/gadget/storage_common.c index b6df130a14..4d5a9a8c42 100644 --- a/drivers/usb/gadget/storage_common.c +++ b/drivers/usb/gadget/storage_common.c @@ -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 -- 2.11.0