Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191726
b: refs/heads/master
c: 7622537
h: refs/heads/master
v: v3
  • Loading branch information
Harro Haan authored and Russell King committed May 5, 2010
1 parent be04fa3 commit d4db75d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e8faff7330a3501eafc9bfe5f4f15af444be29f5
refs/heads/master: 762253741942d8ddbaca1c1ee62d7ed57544332b
7 changes: 7 additions & 0 deletions trunk/drivers/usb/gadget/at91_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,13 @@ static int read_fifo (struct at91_ep *ep, struct at91_request *req)
if (is_done)
done(ep, req, 0);
else if (ep->is_pingpong) {
/*
* One dummy read to delay the code because of a HW glitch:
* CSR returns bad RXCOUNT when read too soon after updating
* RX_DATA_BK flags.
*/
csr = __raw_readl(creg);

bufferspace -= count;
buf += count;
goto rescan;
Expand Down

0 comments on commit d4db75d

Please sign in to comment.