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

Commit 399b5f0d authored by ChandanaKishori Chiluveru's avatar ChandanaKishori Chiluveru
Browse files

USB: f_accessory: Increase the IN endpoint buffer allocation



Some UDC may require allocation of some extra bytes for
TX buffer due to hardware requirement. Add necessary
changes for the same.

Change-Id: Ic4cdbce4ae422bbd2715ad95a7f35b1644c81bc1
Signed-off-by: default avatarSujeet Kumar <ksujeet@codeaurora.org>
Signed-off-by: default avatarChandanaKishori Chiluveru <cchilu@codeaurora.org>
parent 37d1ca50
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -579,7 +579,8 @@ static int create_bulk_endpoints(struct acc_dev *dev,

	/* now allocate requests for our endpoints */
	for (i = 0; i < TX_REQ_MAX; i++) {
		req = acc_request_new(dev->ep_in, BULK_BUFFER_SIZE);
		req = acc_request_new(dev->ep_in,
			BULK_BUFFER_SIZE + cdev->gadget->extra_buf_alloc);
		if (!req)
			goto fail;
		req->complete = acc_complete_in;