diff options
author | Zeng Tao <prime.zeng@hisilicon.com> | 2018-06-12 10:49:06 -0400 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-06-18 05:41:01 -0400 |
commit | 6e967d7e2c4822eba4847ec09037119a0418aaef (patch) | |
tree | ba223f6454e189162a69d02eb23ee9575e04b377 | |
parent | 896e518883f18e601335908192e33426c1f599a4 (diff) |
usb: dwc2: gadget: fix packet drop issue in dwc2_gadget_handle_nak
In ISOC transfer, when the NAK interrupt happens, we shouldn't complete
a usb request, the current flow will complete one usb request with no
hardware transfer, this will lead to a packet drop on the usb bus.
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Zeng Tao <prime.zeng@hisilicon.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r-- | drivers/usb/dwc2/gadget.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/dwc2/gadget.c b/drivers/usb/dwc2/gadget.c index bb499fea6100..bb5eb3c8132d 100644 --- a/drivers/usb/dwc2/gadget.c +++ b/drivers/usb/dwc2/gadget.c | |||
@@ -2818,9 +2818,6 @@ static void dwc2_gadget_handle_nak(struct dwc2_hsotg_ep *hs_ep) | |||
2818 | 2818 | ||
2819 | tmp = dwc2_hsotg_read_frameno(hsotg); | 2819 | tmp = dwc2_hsotg_read_frameno(hsotg); |
2820 | if (using_desc_dma(hsotg)) { | 2820 | if (using_desc_dma(hsotg)) { |
2821 | dwc2_hsotg_complete_request(hsotg, hs_ep, | ||
2822 | get_ep_head(hs_ep), 0); | ||
2823 | |||
2824 | hs_ep->target_frame = tmp; | 2821 | hs_ep->target_frame = tmp; |
2825 | dwc2_gadget_incr_frame_num(hs_ep); | 2822 | dwc2_gadget_incr_frame_num(hs_ep); |
2826 | dwc2_gadget_start_isoc_ddma(hs_ep); | 2823 | dwc2_gadget_start_isoc_ddma(hs_ep); |