On Tue, Jun 19, 2012 at 12:51 AM, Oliver Neukum <oneukum@xxxxxxx> wrote: > > Then I am inclined to say that this is not fully thought through > If the endpoint stalls, the device has detected an error. > We have no idea how to generically handle this error. > We might come into a vicious circle. Why does it come into a vicious circle? If the interrupt endpoint is HALTed, the clear halt event is scheduled to call usb_clear_halt(int pipe), and if it returns successfully, the pipe shouldn't be halted any more, so the later usb_submit_urb() should be OK on the interrupt endpoint. The similar handling policy is taken for RX/TX endpoints in case they are halted. > Could you add a sanity limit for the > amount of halts we clear? Looks it is not needed, at least clearing HALT on Rx/Tx endpoints works well without the limit. Thanks, -- Ming Lei -- 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