Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325956
b: refs/heads/master
c: d9b33c6
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi committed Aug 3, 2012
1 parent 54eb697 commit ab5c1c8
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 35f75696649d43aee8031d81783322b0708805b5
refs/heads/master: d9b33c605c398df1d42c694bda28fe8708754c64
12 changes: 11 additions & 1 deletion trunk/drivers/usb/dwc3/ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,23 @@ static int __dwc3_gadget_ep0_queue(struct dwc3_ep *dep,

dep->flags &= ~(DWC3_EP_PENDING_REQUEST |
DWC3_EP0_DIR_IN);
} else if (dwc->delayed_status) {

return 0;
}

/*
* In case gadget driver asked us to delay the STATUS phase,
* handle it here.
*/
if (dwc->delayed_status) {
dwc->delayed_status = false;

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

return 0;
}

return 0;
Expand Down

0 comments on commit ab5c1c8

Please sign in to comment.