Skip to content
Commit cf23b5b4 authored by Felipe Balbi's avatar Felipe Balbi Committed by Sriharsha Allenki
Browse files

usb: dwc3: gadget: cope with XferNotReady before usb_ep_queue()



If XferNotReady comes before usb_ep_queue() we will
set our PENDING request flag and wait for a
request. However, originally, we were assuming
usb_ep_queue() would always happen before our first
XferNotReady and that causes a corner case where we
could try to issue ENDTRANSFER command before
STARTTRANSFER.

Let's fix that by tracking endpoints which have been
started.

Reported-by: default avatarJanusz Dziedzic <januszx.dziedzic@intel.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Git-commit: 6cb2e4e3de10893f38dbf3923a9cc50c76548a89
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


[sallenki@codeaurora.org: resolved minor conflicts]
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
Change-Id: I2bbf0a1ca2e71181711ae94fb366c2bc54b09cc9
parent a81d6b73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment