mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 07:24:39 +08:00
usb: dwc3: gadget: Don't clear flags before transfer ended
We track END_TRANSFER command completion. Don't clear transfer
started/ended flag prematurely. Otherwise, we'd run into the problem
with restarting transfer before END_TRANSFER command finishes.
Fixes: 6d8a019614
("usb: dwc3: gadget: check for Missed Isoc from event status")
Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
This commit is contained in:
parent
a33e5d639c
commit
a114c4ca64
@ -2570,10 +2570,8 @@ static void dwc3_gadget_endpoint_transfer_in_progress(struct dwc3_ep *dep,
|
|||||||
|
|
||||||
dwc3_gadget_ep_cleanup_completed_requests(dep, event, status);
|
dwc3_gadget_ep_cleanup_completed_requests(dep, event, status);
|
||||||
|
|
||||||
if (stop) {
|
if (stop)
|
||||||
dwc3_stop_active_transfer(dep, true, true);
|
dwc3_stop_active_transfer(dep, true, true);
|
||||||
dep->flags = DWC3_EP_ENABLED;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* WORKAROUND: This is the 2nd half of U1/U2 -> U0 workaround.
|
* WORKAROUND: This is the 2nd half of U1/U2 -> U0 workaround.
|
||||||
|
Loading…
Reference in New Issue
Block a user