Skip to content
Commit c4233573 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: dwc3: gadget: prepare TRBs on update transfers too



If we're updating transfers, we can also prepare as
many TRBs as we can fit in the ring. Let's start
doing that.

This patch 'solves' a limitation of how many TRBs we
can prepare when we're getting close the end of the
ring. Instead driver to prepare only up to end of
the ring, we check if we have space to wrap around
the ring properly.

Note that this only happens when our enqueue and
dequeue pointers are equal (which is the case for
bulk endpoints after an XferComplete event).

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 7f370ed0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment