On Wed, 22 Oct 2014, Anton Tikhomirov wrote:

> > That's right, and it's true for USB-2 as well.  A ZLP is needed only in
> > cases where the host otherwise wouldn't know the transfer is over,
> > i.e., when the transfer length is a nonzero multiple of the maxpacket
> > size and is smaller than wLength.
> 
> Shall we use/check struct usb_request's zero flag for this?

Of course; we have to.  There's no other way for the UDC driver to know 
whether the transfer is shorter than the host expects.

Alan Stern

--
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

Reply via email to