On Wed, 1 Mar 2006, David Brownell wrote:

> 
> > > The "-EPROTO" is common after unplug, but that -EILSEQ suggests you
> > > have a real issue in the lh7a40x_udc driver ...
> > 
> > Not necessarily.  -EILSEQ is a normal code used by uhci-hcd when a CRC or 
> > timeout error occurs on an IN transaction.
> 
> True, but it's usually an either/or:  either you always get the
> same error after unplug, OR that UDC driver has a bug.

If you're referring to whether you get -EILSEQ vs. -EPROTO, it depends on 
the direction of the transfer.  For some reason, uhci-hcd reports 
CRC/timeout errors as -EILSEQ for IN transfers and -EPROTO for OUT 
transfers.  I guess originally someone thought that IN would be associated 
with CRC errors (which makes sense) and OUT with timeout errors (which 
doesn't).  It's especially strange considering that bitstuff errors are
also reported as -EPROTO.

Don't ask me -- all that code was written long before I became the 
maintainer.

So if a test in one direction failed when the gadget was unplugged and
then another test in the other direction immediately started up and
failed, you'd expect to see the two different error codes.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to