]> git.baikalelectronics.ru Git - kernel.git/commit
xHCI: fix wMaxPacketSize mask
authorAndiry Xu <andiry.xu@amd.com>
Thu, 11 Nov 2010 09:43:57 +0000 (17:43 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 11 Nov 2010 18:47:08 +0000 (10:47 -0800)
commit22903aa28631d98803667847c3a9b40f37221abe
tree181d91f6e4a66c8c0fa6fa58f19008f3e0b9392d
parent7e37a37c540e1d4308a343c5d09b660f918f9660
xHCI: fix wMaxPacketSize mask

USB2.0 spec 9.6.6 says: For all endpoints, bit 10..0 specify the maximum
packet size(in bytes).

So the wMaxPacketSize mask should be 0x7ff rather than 0x3ff.

This patch should be queued for the stable tree.  The bug in
xhci_endpoint_init() was present as far back as 2.6.31, and the bug in
xhci_get_max_esit_payload() was present when the function was introduced
in 2.6.34.

Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Andiry Xu <andiry.xu@amd.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@kernel.org
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.h