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

Commit 52fcc0be authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: gadget: pre-issue Start Transfer for Interrupt EPs too



Interrupt endpoints behave much like Bulk endpoints with the exception
that they are periodic. We can pre-issue Start Transfer exactly as we
do for Bulk endpoints.

While at that, remove one trailing blank line which is unnecessary.

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent c96e6725
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -671,7 +671,8 @@ static int __dwc3_gadget_ep_enable(struct dwc3_ep *dep,
	 * Issue StartTransfer here with no-op TRB so we can always rely on No
	 * Issue StartTransfer here with no-op TRB so we can always rely on No
	 * Response Update Transfer command.
	 * Response Update Transfer command.
	 */
	 */
	if (usb_endpoint_xfer_bulk(desc)) {
	if (usb_endpoint_xfer_bulk(desc) ||
			usb_endpoint_xfer_int(desc)) {
		struct dwc3_gadget_ep_cmd_params params;
		struct dwc3_gadget_ep_cmd_params params;
		struct dwc3_trb	*trb;
		struct dwc3_trb	*trb;
		dma_addr_t trb_dma;
		dma_addr_t trb_dma;
@@ -696,7 +697,6 @@ static int __dwc3_gadget_ep_enable(struct dwc3_ep *dep,
		WARN_ON_ONCE(!dep->resource_index);
		WARN_ON_ONCE(!dep->resource_index);
	}
	}



out:
out:
	trace_dwc3_gadget_ep_enable(dep);
	trace_dwc3_gadget_ep_enable(dep);