diff options
author | Felipe Balbi <balbi@ti.com> | 2012-06-25 20:30:49 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-25 20:30:49 +0400 |
commit | 5c81ababecd7ddae08ca944a65d8030cd393013c (patch) | |
tree | 032008bb9f9d7efe374e695df18b81ea801d1cc2 /drivers/usb/dwc3/gadget.h | |
parent | 9be2395186b3504aa5e337bd3284afb4966caae7 (diff) | |
download | linux-5c81ababecd7ddae08ca944a65d8030cd393013c.tar.xz |
usb: dwc3: ep0: prevent starting transfers twice on ep0
In case we try to start an invalid test mode, we
will call dwc3_ep0_stall_and_restart() but we will
also call dwc3_ep0_out_start() which will start
a second transfer on ep0.
Let's prevent any problems by returning early in
the error case.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.h')
0 files changed, 0 insertions, 0 deletions