diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2011-04-14 16:17:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-02 16:39:08 -0700 |
commit | 67e7d64bcece93c84fd6e3832e7c6d91e57c06dc (patch) | |
tree | 5844ea29bc943ed1e4af3947cfe54d17d4739059 /drivers/usb/misc | |
parent | 14b76ed9e613965e02603c31febd85c96e32e094 (diff) | |
download | kernel_goldelico_gta04-67e7d64bcece93c84fd6e3832e7c6d91e57c06dc.zip kernel_goldelico_gta04-67e7d64bcece93c84fd6e3832e7c6d91e57c06dc.tar.gz kernel_goldelico_gta04-67e7d64bcece93c84fd6e3832e7c6d91e57c06dc.tar.bz2 |
usb/usbtest: fix test10 on superpseed
dummy_hcd + g_zero:
|./testusb -a -s 1024 -v 1024 -t 10
| usbtest 2-1:3.0: subtest 14 error, status 0
with patch:
./testusb -a -t 10
|unknown speed /proc/bus/usb/001/002
| dummy_udc dummy_udc: disabled ep-a
| dummy_udc dummy_udc: disabled ep-b
| dummy_udc dummy_udc: enabled ep-a (ep1in-bulk) maxpacket 1024
| dummy_udc dummy_udc: enabled ep-b (ep2out-bulk) maxpacket 1024
| zero gadget: source/sink enabled
| usbtest 1-1:3.0: TEST 10: queue 32 control calls, 1000 times
| dummy_hcd dummy_hcd: timer fired with no URBs pending?
|/proc/bus/usb/001/002 test 10, 0.022370 secs
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/usbtest.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index 7e74741..7e0bb2a 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c @@ -1030,6 +1030,8 @@ test_ctrl_queue(struct usbtest_dev *dev, struct usbtest_param *param) req.wValue = cpu_to_le16((USB_DT_DEVICE << 8) | 0); /* device descriptor size == 18 bytes */ len = udev->descriptor.bMaxPacketSize0; + if (udev->speed == USB_SPEED_SUPER) + len = 512; switch (len) { case 8: len = 24; |