Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325961
b: refs/heads/master
c: 7125d58
h: refs/heads/master
i:
  325959: e1cba9d
v: v3
  • Loading branch information
Felipe Balbi committed Aug 3, 2012
1 parent b0d92a1 commit ac734f0
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 2e3db064855a637c45f7e011214f15bc536e61ad
refs/heads/master: 7125d584d20ba7624488ddefa84b17ea6ce558f1
5 changes: 4 additions & 1 deletion trunk/drivers/usb/dwc3/ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,13 @@ static int __dwc3_gadget_ep0_queue(struct dwc3_ep *dep,
* handle it here.
*/
if (dwc->delayed_status) {
unsigned direction;

direction = !dwc->ep0_expect_in;
dwc->delayed_status = false;

if (dwc->ep0state == EP0_STATUS_PHASE)
__dwc3_ep0_do_control_status(dwc, dwc->eps[1]);
__dwc3_ep0_do_control_status(dwc, dwc->eps[direction]);
else
dev_dbg(dwc->dev, "too early for delayed status\n");

Expand Down

0 comments on commit ac734f0

Please sign in to comment.