]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: usbtest: two super speed fixes for usbtest
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Mon, 16 Apr 2012 21:19:07 +0000 (14:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:12:57 +0000 (15:12 +0800)
commit2960d811d562540494c83b96e4ae4b6b11196016
tree5e658505c5b833bc976b630a9373742c10cb7add
parentd4f3ef6343463dd129f1b97d9310a9a7ab235e7b
usb: usbtest: two super speed fixes for usbtest

commit 6a23ccd216b6a8ba2c67a9f9d8969b4431ad2920 upstream.

bMaxPacketSize0 field for super speed is a power of 2, not a count.
The size itself is always 512.

Max packet size for a super speed bulk endpoint is 1024, so
allocate the urb size in halt_simple() accordingly.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usbtest.c