Skip to content

usb: dwc3: gadget: Improve isoc starting mechanism

Thinh Nguyen linux-usb 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v13 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Include patch "usb: dwc3: gadget: WARN on no-resource status" to this series

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4usb: dwc3: gadget: Properly handle failed kick_transferdrivers/usb/dwc3/gadget.c+16 -80 replies
2/4usb: dwc3: gadget: Store resource index of start cmddrivers/usb/dwc3/gadget.c+6 -30 replies
3/4usb: dwc3: gadget: Issue END_TRANSFER to retry isoc transferdrivers/usb/dwc3/gadget.c+35 -10 replies
4/4usb: dwc3: gadget: WARN on no-resource statusdrivers/usb/dwc3/gadget.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] usb: dwc3: gadget: Improve isoc starting mechanism

Currently we use the "retry" method to issue START_TRANSFER command multiple times, each with a next interval. There's been report that 5 number of retries may not be enough. See https://lkml.org/lkml/2019/11/11/535

We could increase the number of retries. However, that also may not be enough depending on different system latency. It is not often that the latency is higher than 5 isoc intervals. If it goes beyond 5 intervals, let's restart the whole process again.

Changes in v2:
- Include patch "usb: dwc3: gadget: WARN on no-resource status" to this series

Thinh Nguyen (4):
usb: dwc3: gadget: Properly handle failed kick_transfer
usb: dwc3: gadget: Store resource index of start cmd
usb: dwc3: gadget: Issue END_TRANSFER to retry isoc transfer
usb: dwc3: gadget: WARN on no-resource status

 drivers/usb/dwc3/gadget.c | 71 +++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 59 insertions(+), 12 deletions(-)
Signature · 1 line
2.11.0