xhci: Fix mult base in endpoint bandwidth info.
commit170c026347c867a71e27713b98c58b266146c468
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 13 Sep 2011 23:41:12 +0000 (13 16:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 20 Sep 2011 19:33:49 +0000 (20 12:33 -0700)
treede0b8e1855b93ecae7d6d6dfe3138c6228b5fb54
parent75d7cf72ab9fa01dc70877aa5c68e8ef477229dc
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>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.h