Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213614
b: refs/heads/master
c: c8458d5
h: refs/heads/master
v: v3
  • Loading branch information
Christophe Lebouc authored and Greg Kroah-Hartman committed Oct 22, 2010
1 parent eee02b9 commit 7cc7b1d
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: 689d6eacd1b7c3677bfe6ee367766f21c3c80e26
refs/heads/master: c8458d59d424fcba2456d6cba5811ce01c3aedb9
6 changes: 4 additions & 2 deletions trunk/drivers/usb/gadget/langwell_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2440,12 +2440,14 @@ static int process_ep_req(struct langwell_udc *dev, int index,
dev_vdbg(&dev->pdev->dev, "---> %s()\n", __func__);

for (i = 0; i < curr_req->dtd_count; i++) {
remaining_length = le16_to_cpu(curr_dtd->dtd_total);
actual -= remaining_length;

/* command execution states by dTD */
dtd_status = curr_dtd->dtd_status;

barrier();
remaining_length = le16_to_cpu(curr_dtd->dtd_total);
actual -= remaining_length;

if (!dtd_status) {
/* transfers completed successfully */
if (!remaining_length) {
Expand Down

0 comments on commit 7cc7b1d

Please sign in to comment.