Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210961
b: refs/heads/master
c: bb27bc2
h: refs/heads/master
i:
  210959: f8a2886
v: v3
  • Loading branch information
Ming Lei authored and Greg Kroah-Hartman committed Sep 24, 2010
1 parent 80cb43d commit 3ef1648
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 1018b4e44f4f191c6e3c631c4eee35d0a112d32b
refs/heads/master: bb27bc2c1133372b54d00f3077ea4acbbf459045
16 changes: 8 additions & 8 deletions trunk/drivers/usb/musb/musb_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,14 +501,14 @@ void musb_g_tx(struct musb *musb, u8 epnum)
request->zero = 0;
}

/* ... or if not, then complete it. */
musb_g_giveback(musb_ep, request, 0);

request = musb_ep->desc ? next_request(musb_ep) : NULL;
if (!request) {
DBG(4, "%s idle now\n",
musb_ep->end_point.name);
return;
if (request->actual == request->length) {
musb_g_giveback(musb_ep, request, 0);
request = musb_ep->desc ? next_request(musb_ep) : NULL;
if (!request) {
DBG(4, "%s idle now\n",
musb_ep->end_point.name);
return;
}
}
}

Expand Down

0 comments on commit 3ef1648

Please sign in to comment.