Contents of /trunk/kernel-magellan/patches-3.1/0103-3.1.4-all-fixes.patch
Parent Directory | Revision Log
Revision 1606 -
(show annotations)
(download)
Tue Jan 10 13:37:55 2012 UTC (12 years, 8 months ago) by niro
File size: 963 byte(s)
Tue Jan 10 13:37:55 2012 UTC (12 years, 8 months ago) by niro
File size: 963 byte(s)
-consolidated patches dir and added patches up to linux-3.1.8
1 | diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c |
2 | index afef3df..29bec34 100644 |
3 | --- a/drivers/usb/host/ehci-sched.c |
4 | +++ b/drivers/usb/host/ehci-sched.c |
5 | @@ -1480,15 +1480,10 @@ iso_stream_schedule ( |
6 | |
7 | /* NOTE: assumes URB_ISO_ASAP, to limit complexity/bugs */ |
8 | |
9 | - /* find a uframe slot with enough bandwidth. |
10 | - * Early uframes are more precious because full-speed |
11 | - * iso IN transfers can't use late uframes, |
12 | - * and therefore they should be allocated last. |
13 | - */ |
14 | - next = start; |
15 | - start += period; |
16 | - do { |
17 | - start--; |
18 | + /* find a uframe slot with enough bandwidth */ |
19 | + next = start + period; |
20 | + for (; start < next; start++) { |
21 | + |
22 | /* check schedule: enough space? */ |
23 | if (stream->highspeed) { |
24 | if (itd_slot_ok(ehci, mod, start, |
25 | @@ -1501,7 +1496,7 @@ iso_stream_schedule ( |
26 | start, sched, period)) |
27 | break; |
28 | } |
29 | - } while (start > next); |
30 | + } |
31 | |
32 | /* no room in the schedule */ |
33 | if (start == next) { |