• Alan Stern's avatar
    [PATCH] USB: Return better result codes in UHCI · a32564f2
    Alan Stern authored
    This patch changes the result code returned by the UHCI driver for a
    certain class of errors.  Under a number of circumstances a USB device is
    obliged to send a response packet within a fairly short turn-around time,
    typically 1 - 10 microseconds depending on the bus speed.  Failure to do
    so is a protocol error and should be reported as such, not as a timeout,
    which is really a higher-level concept.  I believe the EHCI driver already
    does this.
    
    I trust nobody will object to the update this patch adds to
    Documentation/usb/error-codes.txt, making this more explicit.
    
    In a vaguely related change, the patch corrects the terminology in a few
    comments.  The parts of a control transfer are called "stages", not
    "phases".
    a32564f2
uhci-hcd.c 64.3 KB