This series addresses a few issues with the TRB ring handling and calculation of free space on the ring. v2: - Split up patches into individual fixes with better descriptions. - Added dwc3_ep_prev_trb() to get the previous TRB. - Moved the increment calculation into one function and documented it. - Removed the existing memset() of the link TRB. John Youn (6): usb: dwc3: gadget: Simplify skipping of link TRBs usb: dwc3: gadget: Initialize the TRB ring usb: dwc3: gadget: Don't prepare TRBs if no space usb: dwc3: gadget: Account for max size in TRB space usb: dwc3: gadget: Account for link TRB in TRBs left usb: dwc3: gadget: Handle TRB index 0 when full or empty drivers/usb/dwc3/gadget.c | 81 +++++++++++++++++++++++++++++++---------------- 1 file changed, 54 insertions(+), 27 deletions(-) -- 2.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html