Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364791
b: refs/heads/master
c: 538bf07
h: refs/heads/master
i:
  364789: e799de3
  364787: 1e888d6
  364783: 577dd05
v: v3
  • Loading branch information
Ravi Babu authored and Felipe Balbi committed Apr 2, 2013
1 parent d1e7969 commit 7e89702
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 96449f097e3874af0e8ddd721d3ebeed2ec389da
refs/heads/master: 538bf07d897008e87eca49cde5970545f3814ac7
6 changes: 4 additions & 2 deletions trunk/drivers/usb/musb/musb_gadget_ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,10 @@ static void ep0_rxstate(struct musb *musb)
req->status = -EOVERFLOW;
count = len;
}
musb_read_fifo(&musb->endpoints[0], count, buf);
req->actual += count;
if (count > 0) {
musb_read_fifo(&musb->endpoints[0], count, buf);
req->actual += count;
}
csr = MUSB_CSR0_P_SVDRXPKTRDY;
if (count < 64 || req->actual == req->length) {
musb->ep0_state = MUSB_EP0_STAGE_STATUSIN;
Expand Down

0 comments on commit 7e89702

Please sign in to comment.