Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22041
b: refs/heads/master
c: 469d022
h: refs/heads/master
i:
  22039: 1710e93
v: v3
  • Loading branch information
Clemens Ladisch authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent 015b74c commit a50ab12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: f8aeb3bb8657b207895aa10f75e63f2c48d08985
refs/heads/master: 469d02293d494d30dba81895cd3d34b0a3a6d51a
11 changes: 6 additions & 5 deletions trunk/drivers/usb/host/ehci-sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ iso_stream_init (
} else {
u32 addr;
int think_time;
int hs_transfers;

addr = dev->ttport << 24;
if (!ehci_is_TDI(ehci)
Expand All @@ -719,6 +720,7 @@ iso_stream_init (
think_time = dev->tt ? dev->tt->think_time : 0;
stream->tt_usecs = NS_TO_US (think_time + usb_calc_bus_time (
dev->speed, is_input, 1, maxp));
hs_transfers = max (1u, (maxp + 187) / 188);
if (is_input) {
u32 tmp;

Expand All @@ -727,12 +729,11 @@ iso_stream_init (
stream->usecs = HS_USECS_ISO (1);
stream->raw_mask = 1;

/* pessimistic c-mask */
tmp = usb_calc_bus_time (USB_SPEED_FULL, 1, 0, maxp)
/ (125 * 1000);
stream->raw_mask |= 3 << (tmp + 9);
/* c-mask as specified in USB 2.0 11.18.4 3.c */
tmp = (1 << (hs_transfers + 2)) - 1;
stream->raw_mask |= tmp << (8 + 2);
} else
stream->raw_mask = smask_out [maxp / 188];
stream->raw_mask = smask_out [hs_transfers - 1];
bandwidth = stream->usecs + stream->c_usecs;
bandwidth /= 1 << (interval + 2);

Expand Down

0 comments on commit a50ab12

Please sign in to comment.