|
@@ -171,13 +171,13 @@ static void inc_deq(struct xhci_hcd *xhci, struct xhci_ring *ring)
|
|
if (ring->type == TYPE_EVENT) {
|
|
if (ring->type == TYPE_EVENT) {
|
|
if (!last_trb_on_seg(ring->deq_seg, ring->dequeue)) {
|
|
if (!last_trb_on_seg(ring->deq_seg, ring->dequeue)) {
|
|
ring->dequeue++;
|
|
ring->dequeue++;
|
|
- return;
|
|
|
|
|
|
+ goto out;
|
|
}
|
|
}
|
|
if (last_trb_on_ring(ring, ring->deq_seg, ring->dequeue))
|
|
if (last_trb_on_ring(ring, ring->deq_seg, ring->dequeue))
|
|
ring->cycle_state ^= 1;
|
|
ring->cycle_state ^= 1;
|
|
ring->deq_seg = ring->deq_seg->next;
|
|
ring->deq_seg = ring->deq_seg->next;
|
|
ring->dequeue = ring->deq_seg->trbs;
|
|
ring->dequeue = ring->deq_seg->trbs;
|
|
- return;
|
|
|
|
|
|
+ goto out;
|
|
}
|
|
}
|
|
|
|
|
|
/* All other rings have link trbs */
|
|
/* All other rings have link trbs */
|
|
@@ -190,6 +190,7 @@ static void inc_deq(struct xhci_hcd *xhci, struct xhci_ring *ring)
|
|
ring->dequeue = ring->deq_seg->trbs;
|
|
ring->dequeue = ring->deq_seg->trbs;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+out:
|
|
trace_xhci_inc_deq(ring);
|
|
trace_xhci_inc_deq(ring);
|
|
|
|
|
|
return;
|
|
return;
|