usb: dwc3: gadget: wait for End Transfer to complete
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 31 Oct 2016 11:38:36 +0000 (19:38 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 3 Nov 2016 08:38:39 +0000 (10:38 +0200)
commit76a638f8ac0dd1dadee8f87acff36174d473b7c1
treeb5bd1c9f4c871575b8ae9857dfa870a661fa3429
parent38314e59a901696e437c7ee6ea2831f9ecae977d
usb: dwc3: gadget: wait for End Transfer to complete

Instead of just delaying for 100us, we should
actually wait for End Transfer Command Complete
interrupt before moving on. Note that this should
only be done if we're dealing with one of the core
revisions that actually require the interrupt before
moving on.

[ felipe.balbi@linux.intel.com: minor improvements ]

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c