summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2016-05-02 10:43:41 -0700
committerKyle Yan <kyan@codeaurora.org>2016-06-08 15:16:50 -0700
commitd68052df98f5e6fdd9edc827ff8dbf43577f918c (patch)
treedf33fa6de199c5ba79fa1b012a2f311775c7f133 /drivers/usb
parenta6009395a39ea613a7405354b1ddf183e26d81e8 (diff)
USB: f_mtp: Set maximum burst value to two for superspeed mode
Currently burst value is set to zero for superspeed in mtp driver. MTP throughput can be improved by setting max burst value to non zero value in superspeed mode. Hence set max burst value to two for both IN and OUT bulk endpoints in superspeed mode. Change-Id: Ib78b8fec5d1ab934f4d4ec80b7e008149707ce0f Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org> Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/function/f_mtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/f_mtp.c b/drivers/usb/gadget/function/f_mtp.c
index ee927da07e83..ea3721fe73e9 100644
--- a/drivers/usb/gadget/function/f_mtp.c
+++ b/drivers/usb/gadget/function/f_mtp.c
@@ -157,7 +157,7 @@ static struct usb_ss_ep_comp_descriptor mtp_superspeed_in_comp_desc = {
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
/* the following 2 values can be tweaked if necessary */
- /* .bMaxBurst = 0, */
+ .bMaxBurst = 2,
/* .bmAttributes = 0, */
};
@@ -174,7 +174,7 @@ static struct usb_ss_ep_comp_descriptor mtp_superspeed_out_comp_desc = {
.bDescriptorType = USB_DT_SS_ENDPOINT_COMP,
/* the following 2 values can be tweaked if necessary */
- /* .bMaxBurst = 0, */
+ .bMaxBurst = 2,
/* .bmAttributes = 0, */
};