Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265052
b: refs/heads/master
c: 5275455
h: refs/heads/master
v: v3
  • Loading branch information
Paul Zimmerman authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent 2a05733 commit 4553755
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82828ca77b8b63b817d9bb540145a4cafa9be582
refs/heads/master: 5275455a6e6ae6b57303834b0afd267bb9657ffc
6 changes: 5 additions & 1 deletion trunk/drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,9 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value)
else
dep->flags |= DWC3_EP_STALL;
} else {
if (dep->flags & DWC3_EP_WEDGE)
return 0;

ret = dwc3_send_gadget_ep_cmd(dwc, dep->number,
DWC3_DEPCMD_CLEARSTALL, &params);
if (ret)
Expand All @@ -903,6 +906,7 @@ int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value)
else
dep->flags &= ~DWC3_EP_STALL;
}

return ret;
}

Expand Down Expand Up @@ -936,7 +940,7 @@ static int dwc3_gadget_ep_set_wedge(struct usb_ep *ep)

dep->flags |= DWC3_EP_WEDGE;

return usb_ep_set_halt(ep);
return dwc3_gadget_ep_set_halt(ep, 1);
}

/* -------------------------------------------------------------------------- */
Expand Down

0 comments on commit 4553755

Please sign in to comment.