]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit0aa03aa254249b9a82fe0706510f175e8164dead
tree74913a5f9712fa8e2e37fc9796b54c7971899c3a
parent5812547145408a792012be133eb9fa6d61a7a747
[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