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

Commit 0d90962f authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dwc3: gadget: Increase TXFIFO size as 3KB with endless USB IN endpoint" into msm-4.8

parents d87d4104 ae5ca3c0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -236,7 +236,8 @@ int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc)
		 * use mult as 3 for GSI IN endpoint always irrespective
		 * USB speed.
		 */
		if (dep->endpoint.ep_type == EP_TYPE_GSI)
		if (dep->endpoint.ep_type == EP_TYPE_GSI ||
				dep->endpoint.endless)
			mult = 3;

		if (!(dep->flags & DWC3_EP_ENABLED)) {
+3 −0
Original line number Diff line number Diff line
@@ -300,6 +300,8 @@ struct usb_ep_caps {
 * @ep_type: Used to specify type of EP eg. normal vs h/w accelerated.
 * @ep_num: Used EP number
 * @ep_intr_num: Interrupter number for EP.
 * @endless: In case where endless transfer is being initiated, this is set
 *      to disable usb event interrupt for few events.
 *
 * the bus controller driver lists all the general purpose endpoints in
 * gadget->ep_list.  the control endpoint (gadget->ep0) is not in that list,
@@ -326,6 +328,7 @@ struct usb_ep {
	enum ep_type		ep_type;
	u8			ep_num;
	u8			ep_intr_num;
	bool			endless;
};

/*-------------------------------------------------------------------------*/