USB: add queued-unlinks test case to usbtest driver
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 14 Apr 2011 15:21:04 +0000 (11:21 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 30 Apr 2011 00:24:38 +0000 (17:24 -0700)
commit869410f82cbbb1464772046d87de8d18a916e706
treed8fbbf47c08a3db93fc3dd3d67c99044e6e254ba
parent1f594b64a4f74ece0b7166ca4db05a71a64bd685
USB: add queued-unlinks test case to usbtest driver

This patch (as1452b) adds a new test case to the usbtest driver.  Test
24 exercises the unlink-from-queue pathways in the host.  It queues a
user-specified number of bulk-OUT URBs of user-specified size, unlinks
the fourth- and second-from-last URBs in the queue, and then waits to
see if all the URBs complete in the expected way (except of course
that the unlinked URBs might complete normally, if they weren't
unlinked soon enough).

This new test has confirmed the existence of a bug in the ehci-hcd
driver, to be fixed by a separate patch.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/usbtest.c