Skip to content

Commit

Permalink
Revert "USB: EHCI: fix HUB TT scheduling issue with iso transfer"
Browse files Browse the repository at this point in the history
This reverts commit f0cc710.

Cc: Matthieu Castet <matthieu.castet@parrot.com>
Cc: Thomas Poussevin <thomas.poussevin@parrot.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
gregkh committed Nov 28, 2011
1 parent e6c2efa commit 4a8dec4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions drivers/usb/host/ehci-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -1480,15 +1480,10 @@ iso_stream_schedule (

/* NOTE: assumes URB_ISO_ASAP, to limit complexity/bugs */

/* find a uframe slot with enough bandwidth.
* Early uframes are more precious because full-speed
* iso IN transfers can't use late uframes,
* and therefore they should be allocated last.
*/
next = start;
start += period;
do {
start--;
/* find a uframe slot with enough bandwidth */
next = start + period;
for (; start < next; start++) {

/* check schedule: enough space? */
if (stream->highspeed) {
if (itd_slot_ok(ehci, mod, start,
Expand All @@ -1501,7 +1496,7 @@ iso_stream_schedule (
start, sched, period))
break;
}
} while (start > next);
}

/* no room in the schedule */
if (start == next) {
Expand Down

0 comments on commit 4a8dec4

Please sign in to comment.