Skip to contentSkip to conversation

usb: usbtmc: Add test functions to set HALT Feature (Stall)

PATCH New Greg Kroah-Hartman 1 participant 1 message May 18, 2018 USB

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 10/12 usb: usbtmc: Add test functions to set HALT Feature (Stall)

Quoted 5 lines · Guido Kiener

The ioctls USBTMC_IOCTL_SET_OUT_HALT or USBTMC_IOCTL_SET_IN_HALT send a SET_FEATURE(HALT) request to the corresponding OUT or IN pipe.

Useful for testing devices and client applications: The ioctls force the device to simulate the error state at the specified pipe.

Nice for testing, yes, but is this really needed in the generic kernel driver? Shouldn't you be testing your device with the correct usbtest driver instead?

thanks,

greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html