mbox series

[0/3] usb: dwc3: gadget: Improve END_TRANSFER handling

Message ID cover.1576546936.git.thinhn@synopsys.com (mailing list archive)
Headers show
Series usb: dwc3: gadget: Improve END_TRANSFER handling | expand

Message

Thinh Nguyen Dec. 17, 2019, 1:46 a.m. UTC
This patch series improves the handling of the END_TRANSFER command:

1) Don't issue multiple END_TRANSFER commands while the previous hasn't
   completed.
2) Don't issue START_TRANSFER command while END_TRANSFER hasn't completed
3) Remove arbirary 100us delay



Thinh Nguyen (3):
  usb: dwc3: gadget: Check END_TRANSFER completion
  usb: dwc3: gadget: Delay starting transfer
  usb: dwc3: gadget: Remove END_TRANSFER delay

 drivers/usb/dwc3/core.h   |  2 ++
 drivers/usb/dwc3/ep0.c    |  4 +++-
 drivers/usb/dwc3/gadget.c | 34 +++++++++++++++++++++-------------
 3 files changed, 26 insertions(+), 14 deletions(-)