On Tue, 12 Feb 2008, Jean-Christophe Dubois wrote:

> Let's ask the question: if usbcore was detecting an endpoint with a 0 
> dev->maxpacket would it reject it right away or would it pass it anyway 
> trusting that the specific driver would know about this problem (buggy 
> hardware is everywhere) and work around it in software.

As far as I know, there's nothing illegal about an Interrupt or
Isochronous endpoint having maxpacket size 0.  It might even be useful,
for example, in Boolean polling.  Bulk and control endpoints are
different; the spec limits their possible maxpacket sizes to only a few
power-of-2 values.  I don't see how a bulk endpoint with 0 maxpacket 
could be useful for anything.

At any rate, until Dave posted his patch usbcore did not check for
illegal maxpacket values (other than on ep0).

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