Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 446f98fa authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 621d21a8 3f0b09d6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;