On Thu, Feb 13, 2014 at 11:45:16AM -0500, Alan Stern wrote: > @@ -1074,6 +1089,7 @@ static int proc_clearhalt(struct dev_sta > ret = checkintf(ps, ret); > if (ret) > return ret; > + check_reset_of_active_ep(ps->dev, ep, "CLEAR_HALT"); > if (ep & USB_DIR_IN) > pipe = usb_rcvbulkpipe(ps->dev, ep & 0x7f); > else In documentation is written: USBDEVFS_CLEAR_HALT Clears endpoint halt (stall) and resets the endpoint toggle. This is only meaningful for bulk or interrupt endpoints. The ioctl parameter is an integer endpoint number (1 to 15, as identified in an endpoint descriptor), masked with USB_DIR_IN when referring to an endpoint which sends data to the host from the device. Use this on bulk or interrupt endpoints which have stalled, returning <emphasis>-EPIPE</emphasis> status to a data transfer request. Do not issue the control request directly, since that could invalidate the host's record of the data toggle. Is possible that user space driver can issue dozen of URBs , then get -EPIPE for last of them, and then call CLEAR_HALT ? According documentation, this behaviour should be correct. Or peraps can not issue more than one URB for USB_DIR_IN endpoint and should not do CLEAR_HALT for USB_DIR_OUT endpoints ? Stanislaw -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html