]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xHCI: fix wMaxPacketSize mask
authorAndiry Xu <andiry.xu@amd.com>
Thu, 11 Nov 2010 09:43:57 +0000 (17:43 +0800)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:12 +0000 (23:40 +0100)
commitb9c5ff8e4a33aa0746121ea828544a285df9f5b6
tree8bd4acde4ac9535f6fa4500f74c3b10df9711e66
parente4027ab821c0db566c2db2fa0e82bffb76744e36
xHCI: fix wMaxPacketSize mask

commit dc07c91b9b4067022210e68d914a6890a4d70622 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.h