linux/drivers/usb/misc
Alan Stern d0b4652f80 USB: altsetting overrides for usbtest
The usbtest driver includes some rather simple-minded logic for
selecting an altsetting to test.  It doesn't work well for the g_zero
gadget, because it selects altsetting 0 (which doesn't have
isochronous endpoints) rather than altsetting 1 (which does have them,
if the gadget's hardware supports them).  This prevents usbtest's
isochronous tests (15, 16, 22, and 23) from working with g_zero.

Since g_zero is one of the most common gadget drivers used for USB
testing, usbtest should do a better job of supporting it.  But since
some programs may rely on the current scheme for selecting
altsettings, I didn't want to change it.

Instead, this patch (as1655) adds a module parameter to usbtest, which
can be used to override the default altsetting.  Since usbtest is
never used by normal users (most distributions probably don't even
build it), the new module parameter won't inconvenience anybody.  In
any case, it is entirely optional -- leaving it unset preserves the
existing behavior.

The patch also fixes a related bug in usbtest: After selecting an
altsetting, the driver neglects to store its selection.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-31 10:09:19 +01:00
..
sisusbvga
adutux.c
appledisplay.c USB: appledisplay.c: remove dbg() usage 2012-05-01 21:33:54 -07:00
cypress_cy7c63.c
cytherm.c
emi26.c
emi62.c USB: emi62: remove __devinit* from the struct usb_device_id table 2012-08-17 17:50:45 -07:00
ezusb.c Merge 3.7-rc3 into usb-next. 2012-10-29 09:04:39 -07:00
ftdi-elan.c
idmouse.c USB: idmouse.c: remove dbg() usage 2012-05-01 21:33:58 -07:00
iowarrior.c USB: iowarrior.c: remove err() usage 2012-04-20 16:53:45 -07:00
isight_firmware.c
Kconfig USB: misc: Add USB3503 High-Speed Hub Controller 2013-01-11 12:12:07 -08:00
ldusb.c USB: ldusb.c: remove err() usage 2012-04-20 16:53:47 -07:00
legousbtower.c USB: legousbtower.c: remove a bogus NULL check 2012-08-15 15:17:39 -07:00
Makefile USB: misc: Add USB3503 High-Speed Hub Controller 2013-01-11 12:12:07 -08:00
rio500_usb.h
rio500.c drivers/usb/misc/rio500.c: removes unnecessary semicolon 2012-09-13 21:48:48 -07:00
trancevibrator.c
usb3503.c USB: misc: usb3503: Fix compiler warning 2013-01-25 09:56:54 -08:00
usb_u132.h
usblcd.c USB: usblcd.c: remove dbg() usage 2012-05-01 21:34:03 -07:00
usbled.c
usbsevseg.c
usbtest.c USB: altsetting overrides for usbtest 2013-01-31 10:09:19 +01:00
uss720.c USB: uss720.c: remove dbg() usage 2012-05-01 21:34:07 -07:00
yurex.c USB: yurex.c: remove dbg() usage 2012-05-01 21:34:11 -07:00