commit | 0ed27b18437f15026bd8b2f3051d4df267d0bfb5 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <balbi@ti.com> | Mon Jun 25 19:30:49 2012 +0300 |
committer | Pavankumar Kondeti <pkondeti@codeaurora.org> | Fri Oct 12 16:06:21 2012 +0530 |
tree | f6706466aa80a9bd1e338508dbbc60ccd116aadf | |
parent | 4ee20d52fca324ddf29194c6cbc4f33457cf05b4 [diff] |
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. Change-Id: I7bb741ade3c408792033f26f9829bf65adf70be2 Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>