USB: xhci: Set Mult field in endpoint context correctly.
commite2891450bf1461078fb7b345f758c17451e6105b
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Sat, 10 Jul 2010 13:48:01 +0000 (10 15:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:30:02 +0000 (2 10:30 -0700)
treed69994e7d8235ba7d8cf426865fbbc7eb6cebb8d
parenta9558dd8eda25d345cbb13155de05b289348ec11
USB: xhci: Set Mult field in endpoint context correctly.

commit c30c791c946a14a03e87819eced562ed28711961 upstream.

The bmAttributes field of the SuperSpeed Endpoint Companion Descriptor has
different meanings, depending on the endpoint type.  If the endpoint is
isochronous, the bmAttributes field is the maximum number of packets
within a service interval that this endpoint supports.  If the endpoint is
bulk, it's the number of stream IDs this endpoint supports.

Only set the Mult field of the xHCI endpoint context using the
bmAttributes field if the endpoint is isochronous, and the device is a
SuperSpeed device.

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