[PATCH] usbtest: report errors in iso tests
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 22 May 2006 20:47:13 +0000 (16:47 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Jun 2006 22:04:13 +0000 (15:04 -0700)
commit9da2150f59e885d88b9eabe0a677f0fa4962f7b4
tree74913a5f9712fa8e2e37fc9796b54c7971899c3a
parent0ae4ea8092e1277cfca07cade7eaba5f594076c1
[PATCH] usbtest: report errors in iso tests

This patch (as693b) makes the usbtest driver report errors in the
isochronous bulk transfer tests instead of always returning 0.  As an
arbitrary cutoff, an error is returned if more than 10% of the packet
transfers fail.  It also stops a test immediately upon receiving an URB
submission error.

For a test harness, it's especially important to report when errors occur!

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