summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorSarah Sharp <sarah.a.sharp@linux.intel.com>2011-09-13 16:41:12 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-20 12:33:49 -0700
commit170c026347c867a71e27713b98c58b266146c468 (patch)
treede0b8e1855b93ecae7d6d6dfe3138c6228b5fb54 /drivers/usb/host/xhci.h
parent75d7cf72ab9fa01dc70877aa5c68e8ef477229dc (diff)
downloadlinux-170c026347c867a71e27713b98c58b266146c468.tar.bz2
xhci: Fix mult base in endpoint bandwidth info.
The "Mult" bits in the SuperSpeed Endpoint Companion Descriptor are zero-based, and the xHCI host controller wants them to be zero-based in the input context. However, for the bandwidth math, we want them to be one-based. Fix this. Fix the documentation about the endpoint bandwidth mult variable in the xhci.h file, which says it is zero-based. Also fix the documentation about num_packets, which is also one-based, not zero-based. Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r--drivers/usb/host/xhci.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index 13f1c23ed19d..752a500f8695 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -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;