Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338705
b: refs/heads/master
c: 50ce5c0
h: refs/heads/master
i:
  338703: 496716c
v: v3
  • Loading branch information
Alan Stern authored and Greg Kroah-Hartman committed Nov 26, 2012
1 parent 71c7534 commit f6d462c
Show file tree
Hide file tree
Showing 2 changed files with 20 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: 31b6a1048b7292efff8b5b53ae3d9d29adde385e
refs/heads/master: 50ce5c0683aa83eb161624ea89daa5a9eee0c2ce
19 changes: 19 additions & 0 deletions trunk/drivers/usb/host/ohci-q.c
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,25 @@ dl_done_list (struct ohci_hcd *ohci)

while (td) {
struct td *td_next = td->next_dl_td;
struct ed *ed = td->ed;

/*
* Some OHCI controllers (NVIDIA for sure, maybe others)
* occasionally forget to add TDs to the done queue. Since
* TDs for a given endpoint are always processed in order,
* if we find a TD on the donelist then all of its
* predecessors must be finished as well.
*/
for (;;) {
struct td *td2;

td2 = list_first_entry(&ed->td_list, struct td,
td_list);
if (td2 == td)
break;
takeback_td(ohci, td2);
}

takeback_td(ohci, td);
td = td_next;
}
Expand Down

0 comments on commit f6d462c

Please sign in to comment.