summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-06-14 09:57:06 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-06-14 09:57:05 -0700
commit446f98fa7c8f887076134b7de5d70eee72290fd6 (patch)
treec8ed0616a0f18fca33dd803e86a51abc006f694d /drivers
parent621d21a88ecf495c80f6327c2f9db6f1b2dea6db (diff)
parent3f0b09d6bdd826a34228b3bf51d0491a7a5909db (diff)
Merge "f_fs: set maxburst to one before enabling endpoints"
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/function/f_fs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c
index 7c35241a487a..b6f4790ffc08 100644
--- a/drivers/usb/gadget/function/f_fs.c
+++ b/drivers/usb/gadget/function/f_fs.c
@@ -2015,6 +2015,12 @@ static int ffs_func_eps_enable(struct ffs_function *func)
break;
}
+ /*
+ * userspace setting maxburst > 1 results more fifo
+ * allocation than without maxburst. Change maxburst to 1
+ * only to allocate fifo size of max packet size.
+ */
+ ep->ep->maxburst = 1;
ret = usb_ep_enable(ep->ep);
if (likely(!ret)) {
epfile->ep = ep;