diff options
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 1 | ||||
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 4fa2c9873ea..73efdf6938a 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c | |||
@@ -617,6 +617,7 @@ static void dwc3_ep0_xfer_complete(struct dwc3 *dwc, | |||
617 | struct dwc3_ep *dep = dwc->eps[event->endpoint_number]; | 617 | struct dwc3_ep *dep = dwc->eps[event->endpoint_number]; |
618 | 618 | ||
619 | dep->flags &= ~DWC3_EP_BUSY; | 619 | dep->flags &= ~DWC3_EP_BUSY; |
620 | dep->res_trans_idx = 0; | ||
620 | dwc->setup_packet_pending = false; | 621 | dwc->setup_packet_pending = false; |
621 | 622 | ||
622 | switch (dwc->ep0state) { | 623 | switch (dwc->ep0state) { |
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index bfdfd4f151f..da317f6a8bc 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c | |||
@@ -1628,10 +1628,8 @@ static void dwc3_endpoint_transfer_complete(struct dwc3 *dwc, | |||
1628 | status = -ECONNRESET; | 1628 | status = -ECONNRESET; |
1629 | 1629 | ||
1630 | clean_busy = dwc3_cleanup_done_reqs(dwc, dep, event, status); | 1630 | clean_busy = dwc3_cleanup_done_reqs(dwc, dep, event, status); |
1631 | if (clean_busy) { | 1631 | if (clean_busy) |
1632 | dep->flags &= ~DWC3_EP_BUSY; | 1632 | dep->flags &= ~DWC3_EP_BUSY; |
1633 | dep->res_trans_idx = 0; | ||
1634 | } | ||
1635 | 1633 | ||
1636 | /* | 1634 | /* |
1637 | * WORKAROUND: This is the 2nd half of U1/U2 -> U0 workaround. | 1635 | * WORKAROUND: This is the 2nd half of U1/U2 -> U0 workaround. |
@@ -1736,6 +1734,8 @@ static void dwc3_endpoint_interrupt(struct dwc3 *dwc, | |||
1736 | 1734 | ||
1737 | switch (event->endpoint_event) { | 1735 | switch (event->endpoint_event) { |
1738 | case DWC3_DEPEVT_XFERCOMPLETE: | 1736 | case DWC3_DEPEVT_XFERCOMPLETE: |
1737 | dep->res_trans_idx = 0; | ||
1738 | |||
1739 | if (usb_endpoint_xfer_isoc(dep->desc)) { | 1739 | if (usb_endpoint_xfer_isoc(dep->desc)) { |
1740 | dev_dbg(dwc->dev, "%s is an Isochronous endpoint\n", | 1740 | dev_dbg(dwc->dev, "%s is an Isochronous endpoint\n", |
1741 | dep->name); | 1741 | dep->name); |