Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265007
b: refs/heads/master
c: 170c026
h: refs/heads/master
i:
  265005: b110405
  265003: f3dcdc0
  264999: f1c0472
  264991: 125b331
v: v3
  • Loading branch information
Sarah Sharp authored and Greg Kroah-Hartman committed Sep 20, 2011
1 parent 76b6f71 commit 126da4c
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 75d7cf72ab9fa01dc70877aa5c68e8ef477229dc
refs/heads/master: 170c026347c867a71e27713b98c58b266146c468
9 changes: 5 additions & 4 deletions trunk/drivers/usb/host/xhci-mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1473,11 +1473,12 @@ void xhci_update_bw_info(struct xhci_hcd *xhci,
/* Added or changed endpoint */
bw_info->ep_interval = CTX_TO_EP_INTERVAL(
le32_to_cpu(ep_ctx->ep_info));
bw_info->mult = CTX_TO_EP_MULT(
le32_to_cpu(ep_ctx->ep_info));
/* Number of packets is zero-based in the input context,
* but we want one-based for the interval table.
/* Number of packets and mult are zero-based in the
* input context, but we want one-based for the
* interval table.
*/
bw_info->mult = CTX_TO_EP_MULT(
le32_to_cpu(ep_ctx->ep_info)) + 1;
bw_info->num_packets = CTX_TO_MAX_BURST(
le32_to_cpu(ep_ctx->ep_info2)) + 1;
bw_info->max_packet_size = MAX_PACKET_DECODED(
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/usb/host/xhci.h
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,9 @@ struct xhci_stream_info {
* (DMI) also limits the total bandwidth (across all domains) that can be used.
*/
struct xhci_bw_info {
/* ep_interval is zero-based */
unsigned int ep_interval;
/* mult and num_packets are zero-based */
/* mult and num_packets are one-based */
unsigned int mult;
unsigned int num_packets;
unsigned int max_packet_size;
Expand Down

0 comments on commit 126da4c

Please sign in to comment.