Skip to content

Commit

Permalink
usb: gadget: mtp: Increase RX transfer length to 1M
Browse files Browse the repository at this point in the history
The test results indicate that larger transfers improve write speeds.
The Rx request transfer length is now 16K bytes. Increase the Rx
transfer length from 16K to 1MB to get good throughputs.

Change-Id: I3c64e6b96d569b4dc61805a53a0835db9142d55e
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
  • Loading branch information
Hemant Kumar authored and Jack Pham committed Feb 9, 2017
1 parent 767e610 commit c044ad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/gadget/function/f_mtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

#include "configfs.h"

#define MTP_RX_BUFFER_INIT_SIZE 1048576
#define MTP_BULK_BUFFER_SIZE 16384
#define INTR_BUFFER_SIZE 28
#define MAX_INST_NAME_LEN 40
Expand Down Expand Up @@ -77,7 +78,7 @@

#define MAX_ITERATION 100

unsigned int mtp_rx_req_len = MTP_BULK_BUFFER_SIZE;
unsigned int mtp_rx_req_len = MTP_RX_BUFFER_INIT_SIZE;
module_param(mtp_rx_req_len, uint, 0644);

unsigned int mtp_tx_req_len = MTP_BULK_BUFFER_SIZE;
Expand Down

0 comments on commit c044ad0

Please sign in to comment.