diff options
author | Minas Harutyunyan <Minas.Harutyunyan@synopsys.com> | 2018-06-12 04:27:36 -0400 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-06-18 05:41:01 -0400 |
commit | 21cbbc6bb7b4ba6aee303a3b4aef1578253724d8 (patch) | |
tree | 120c6b9006ca1e240f5d965557235465cdeb679b | |
parent | 615277779f41a753e68f531613e344c54fdc95bf (diff) |
usb: dwc2: gadget: fix packet drop issue for ISOC OUT transfers
In ISOC OUT transfer, when the OUT token received while EP disabled,
we shouldn't complete a usb request. The current flow completed one
usb request, this will lead to a packet drop to function driver.
Signed-off-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r-- | drivers/usb/dwc2/gadget.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index bb5eb3c8132d..fa3b6f361074 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c | |||
@@ -2756,8 +2756,6 @@ static void dwc2_gadget_handle_out_token_ep_disabled(struct dwc2_hsotg_ep *ep) | |||
2756 | */ | 2756 | */ |
2757 | tmp = dwc2_hsotg_read_frameno(hsotg); | 2757 | tmp = dwc2_hsotg_read_frameno(hsotg); |
2758 | 2758 | ||
2759 | dwc2_hsotg_complete_request(hsotg, ep, get_ep_head(ep), 0); | ||
2760 | |||
2761 | if (using_desc_dma(hsotg)) { | 2759 | if (using_desc_dma(hsotg)) { |
2762 | if (ep->target_frame == TARGET_FRAME_INITIAL) { | 2760 | if (ep->target_frame == TARGET_FRAME_INITIAL) { |
2763 | /* Start first ISO Out */ | 2761 | /* Start first ISO Out */ |