|
|
@@ -1041,6 +1041,8 @@ static void dwc3_prepare_one_trb(struct dwc3_ep *dep,
|
|
|
req->trb_dma = dwc3_trb_dma_offset(dep, trb);
|
|
|
}
|
|
|
|
|
|
+ req->num_trbs++;
|
|
|
+
|
|
|
__dwc3_prepare_one_trb(dep, trb, dma, length, chain, node,
|
|
|
stream_id, short_not_ok, no_interrupt);
|
|
|
}
|
|
|
@@ -1075,6 +1077,7 @@ static void dwc3_prepare_one_trb_sg(struct dwc3_ep *dep,
|
|
|
|
|
|
/* Now prepare one extra TRB to align transfer size */
|
|
|
trb = &dep->trb_pool[dep->trb_enqueue];
|
|
|
+ req->num_trbs++;
|
|
|
__dwc3_prepare_one_trb(dep, trb, dwc->bounce_addr,
|
|
|
maxp - rem, false, 1,
|
|
|
req->request.stream_id,
|
|
|
@@ -1119,6 +1122,7 @@ static void dwc3_prepare_one_trb_linear(struct dwc3_ep *dep,
|
|
|
|
|
|
/* Now prepare one extra TRB to align transfer size */
|
|
|
trb = &dep->trb_pool[dep->trb_enqueue];
|
|
|
+ req->num_trbs++;
|
|
|
__dwc3_prepare_one_trb(dep, trb, dwc->bounce_addr, maxp - rem,
|
|
|
false, 1, req->request.stream_id,
|
|
|
req->request.short_not_ok,
|
|
|
@@ -1135,6 +1139,7 @@ static void dwc3_prepare_one_trb_linear(struct dwc3_ep *dep,
|
|
|
|
|
|
/* Now prepare one extra TRB to handle ZLP */
|
|
|
trb = &dep->trb_pool[dep->trb_enqueue];
|
|
|
+ req->num_trbs++;
|
|
|
__dwc3_prepare_one_trb(dep, trb, dwc->bounce_addr, 0,
|
|
|
false, 1, req->request.stream_id,
|
|
|
req->request.short_not_ok,
|
|
|
@@ -2231,6 +2236,7 @@ static int dwc3_gadget_ep_reclaim_completed_trb(struct dwc3_ep *dep,
|
|
|
dwc3_ep_inc_deq(dep);
|
|
|
|
|
|
trace_dwc3_complete_trb(dep, trb);
|
|
|
+ req->num_trbs--;
|
|
|
|
|
|
/*
|
|
|
* If we're in the middle of series of chained TRBs and we
|