Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264990
b: refs/heads/master
c: d742220
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi committed Sep 9, 2011
1 parent 062e4f6 commit 92cff79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb7ea2841e9c8669ac31e4262f585729bf779bff
refs/heads/master: d742220b357769fa0a764d238373b8667116cf64
10 changes: 10 additions & 0 deletions trunk/drivers/usb/dwc3/ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,19 @@ int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request,

static void dwc3_ep0_stall_and_restart(struct dwc3 *dwc)
{
struct dwc3_ep *dep = dwc->eps[0];

/* stall is always issued on EP0 */
__dwc3_gadget_ep_set_halt(dwc->eps[0], 1);
dwc->eps[0]->flags = DWC3_EP_ENABLED;

if (!list_empty(&dep->request_list)) {
struct dwc3_request *req;

req = next_request(&dep->request_list);
dwc3_gadget_giveback(dep, req, -ECONNRESET);
}

dwc->ep0state = EP0_SETUP_PHASE;
dwc3_ep0_out_start(dwc);
}
Expand Down

0 comments on commit 92cff79

Please sign in to comment.