Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265123
b: refs/heads/master
c: 3661622
h: refs/heads/master
i:
  265121: eecd565
  265119: 26a4cff
v: v3
  • Loading branch information
Neil Zhang authored and Felipe Balbi committed Oct 13, 2011
1 parent 906c5d5 commit 2282f67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 0c70840b22d9f3b762f21a28bface1a42c0c5ba2
refs/heads/master: 366162245e619d59c9d615774ab3aa639deb7725
5 changes: 3 additions & 2 deletions trunk/drivers/usb/gadget/mv_udc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1343,6 +1343,7 @@ udc_prime_status(struct mv_udc *udc, u8 direction, u16 status, bool empty)

ep = &udc->eps[0];
udc->ep0_dir = direction;
udc->ep0_state = WAIT_FOR_OUT_STATUS;

req = udc->status_req;

Expand Down Expand Up @@ -1421,6 +1422,8 @@ static void ch9getstatus(struct mv_udc *udc, u8 ep_num,
retval = udc_prime_status(udc, EP_DIR_IN, status, false);
if (retval)
ep0_stall(udc);
else
udc->ep0_state = DATA_STATE_XMIT;
}

static void ch9clearfeature(struct mv_udc *udc, struct usb_ctrlrequest *setup)
Expand Down Expand Up @@ -1466,8 +1469,6 @@ static void ch9clearfeature(struct mv_udc *udc, struct usb_ctrlrequest *setup)

if (udc_prime_status(udc, EP_DIR_IN, 0, true))
ep0_stall(udc);
else
udc->ep0_state = DATA_STATE_XMIT;
out:
return;
}
Expand Down

0 comments on commit 2282f67

Please sign in to comment.