]> git.baikalelectronics.ru Git - kernel.git/commit
USB: xhci: Set Mult field in endpoint context correctly.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Sat, 10 Jul 2010 13:48:01 +0000 (15:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Jul 2010 19:00:58 +0000 (12:00 -0700)
commit197a99d6357a437168d4ae72b720462699e6ad7c
tree522ff719de8a8858e4bc87c3b987d8e43a601089
parentbd63deec4e37ce173c0a3dd4df0d42d386e786c6
USB: xhci: Set Mult field in endpoint context correctly.

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-mem.c