On Thu, Dec 06, 2001 at 03:48:25PM -0800, Greg KH wrote:
> Hi all,
> 
> Here's a patch that removes all of the USB_ST_* error #defines in the
> 2.5.1-pre5 kernel.  Let me know if anyone objects to this.

As Randy nicely pointed out to me, the documentation was still
referencing the USB_ST_* codes.  So here's a patch that fixes it.

In looking at this document, I think some of the more recent changes in
error handling in the host controller drivers have not been documented
here.  Does anyone want to update this?

thanks,

greg k-h


diff -Nru a/Documentation/usb/error-codes.txt b/Documentation/usb/error-codes.txt
--- a/Documentation/usb/error-codes.txt Thu Dec  6 16:24:03 2001
+++ b/Documentation/usb/error-codes.txt Thu Dec  6 16:24:03 2001
@@ -1,14 +1,9 @@
-Revised: 2000-Dec-05.
+Revised: 2001-Dec-06.
 
 This is the documentation of (hopefully) all possible error codes (and
 their interpretation) that can be returned from the host controller drivers 
 and from usbcore.
 
-NOTE:
-The USB_ST_* codes are deprecated and are only listed for compatibility;
-new software should use only -E* instead!
-
-
 
 **************************************************************************
 *                   Error codes returned by usb_submit_urb               *
@@ -16,7 +11,6 @@
 
 Non-USB-specific:
 
-USB_ST_NOERROR
 0              URB submission went fine
 
 -ENOMEM                no memory for allocation of internal structures 
@@ -25,12 +19,10 @@
 
 -ENODEV                specified USB-device or bus doesn't exist
 
-USB_ST_REQUEST_ERROR
 -ENXIO         a control or interrupt URB is already queued to this endpoint; or
                  a bulk URB is already queued to this endpoint and
                  USB_QUEUE_BULK wasn't used (UHCI HCDs only)
 
-USB_ST_URB_INVALID_ERROR
 -EINVAL                a) Invalid transfer type specified (or not supported)
                b) Invalid interrupt interval (0<=n<256)
                c) more than one interrupt packet requested
@@ -42,12 +34,10 @@
 
 -EFBIG         too much ISO frames requested (currently uhci>900)
 
-USB_ST_STALL
 -EPIPE         specified pipe-handle is already stalled
 
 -EMSGSIZE      endpoint message size is zero, do interface/alternate setting
 
-USB_ST_BANDWIDTH_ERROR
 -ENOSPC                The host controller's bandwidth is already consumed and
                this request would push it past its allowed limit.
 
@@ -60,60 +50,43 @@
 *                   or in iso_frame_desc[n].status (for ISO)             *
 **************************************************************************
 
-USB_ST_NOERROR
 0                      Transfer completed successfully
 
-USB_ST_URB_KILLED
 -ENOENT                        URB was canceled by usb_unlink_urb
 
-USB_ST_URB_PENDING
 -EINPROGRESS           URB still pending, no results yet
                        (actually no error until now;-)
 
-USB_ST_BITSTUFF
-USB_ST_INTERNALERROR
 -EPROTO                        a) bitstuff error
                        b) unknown USB error 
 
-USB_ST_CRC
 -EILSEQ                        CRC mismatch
 
-USB_ST_STALL
 -EPIPE                 endpoint stalled
 
-USB_ST_BUFFEROVERRUN
 -ECOMM                 During an IN transfer, the host controller
                        received data from an endpoint faster than it
                        could be written to system memory
 
-USB_ST_BUFFERUNDERRUN
 -ENOSR                 During an OUT transfer, the host controller
                        could not retrieve data from system memory fast
                        enough to keep up with the USB data rate
 
-USB_ST_DATAOVERRUN
 -EOVERFLOW             The amount of data returned by the endpoint was
                        greater than either the max packet size of the
                        endpoint or the remaining buffer size.  "Babble".
 
-USB_ST_DATAUNDERRUN
 -EREMOTEIO             The endpoint returned less than max packet size
                        and that amount did not fill the specified buffer
-USB_ST_NORESPONSE
-USB_ST_TIMEOUT
 -ETIMEDOUT             transfer timed out, NAK
 
-USB_ST_REMOVED 
 -ENODEV                        device was removed
 
-USB_ST_SHORT_PACKET
 -EREMOTEIO             short packet detected
 
-USB_ST_PARTIAL_ERROR
 -EXDEV                 ISO transfer only partially completed
                        look at individual frame status for details
 
-USB_ST_URB_INVALID_ERROR
 -EINVAL                        ISO madness, if this happens: Log off and go home
 
 -ECONNRESET            the URB is being unlinked asynchronously

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to