On Fri, 9 Jun 2017, Benjamin Herrenschmidt wrote: > On Thu, 2017-06-08 at 11:30 -0400, Alan Stern wrote: > > On Thu, 8 Jun 2017, Benjamin Herrenschmidt wrote: > > > > > Another question ... > > > > > > Do i need to support dequeue() on EP0 ? > > > > Yes. I don't know if any drivers ever dequeue requests from ep0, but > > it should be supported. > > Talking of which... what is the expected "semantic" of dequeue of > an active request ? (Either on EP0 or another EP, but on EP0 a queued > request becomes active pretty much right away). > > By active I mean the request has started transferring. > > I assume I should interrupt it on a packet boundary... do I also need > to finish with a short packet for a IN request or leave the pipe alone > in whatever half-baked state it is ? This is unspecified in the API. You can do pretty much whatever you want; a transfer that gets cancelled in the middle is going to need some sort of error recovery on the host side no matter what. Alan Stern -- 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