Revert "f_fs: set maxburst to one before enabling endpoints"

This reverts commit e3c2d0c27e3bd3df4b66bba9e9b47c7e0a442eb8.

This was severely slowing down usb transfer speeds.

Bug: 76154677
Test: mtp and adb speeds return to normal
Change-Id: I70e7a45b3d71a66a4191637891d145a86495aab6
Signed-off-by: Jerry Zhang <zhangjerry@google.com>
This commit is contained in:
Jerry Zhang 2018-03-23 16:23:34 -07:00 committed by Timi
parent 59d01673ea
commit 3b4f0ff0e0

View file

@ -2180,12 +2180,6 @@ 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;