Re: usb error number question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/28/2012 09:21 PM, Reartes Guillermo wrote:

> Hi,
> 
> Does anybody know where is the list for those numbered usb errors is located ?
> I mean the -110, -71, -108 and any other that might exist.?
> Is it there a full list of them somewhere?

See (in the kernel source tree) Documentation/usb/error-codes.txt
and then correlate the named error codes to the generic numbered
error codes in include/asm-generic/errno*.h.

or maybe do it in reverse order :)

> Examples:
> 
> usb 2-3.4: reset high speed USB device using ehci_hcd and address 3
>   usb 2-3.4: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len
> 255 ret -108

E.g., 108 in include/asm-generic/errno.h is ESHUTDOWN.
In Documentation/usb/error-codes.txt, -ESHUTDOWN is:

-ESHUTDOWN	The device or host controller has been disabled due to some
		problem that could not be worked around.


> usbcore: deregistering driver usb-storage
> usb 2-3.4: usbfs: USBDEVFS_CONTROL failed cmd binary_fw_update_tool
> rqt 64 rq 9 len 4 ret -71


71 is EPROTO.  -EPROTO is used for bitstuff error, timeout, or
some other unknown error.

> hub 2-3:1.0: port 4 disabled by hub (EMI?), re-enabling...
> usb 2-3.4: USB disconnect, address 3
> usb 2-3.4: new high speed USB device using ehci_hcd and address 5
> usb 2-3.4: configuration #1 chosen from 1 choice
> 
> cdrom: This disc doesn't have any tracks I recognize!
> usb 2-3.4: reset high speed USB device using ehci_hcd and address 19
> usb 2-3.4: device descriptor read/64, error -110
> usb 2-3.4: device descriptor read/64, error -110
> 


110 is ETIMEDOUT.  -ETIMEDOUT is:
-ETIMEDOUT		Synchronous USB message functions use this code
			to indicate timeout expired before the transfer
			completed, and no other error was reported by HC.


> 
> kernel: usb 7-1.1: USB disconnect, address 3
> kernel: usb 7-1.1: new low speed USB device using uhci_hcd and address 8
> kernel: usb 7-1.1: device descriptor read/64, error -71
> kernel: usb 7-1.1: device descriptor read/64, error -71
> kernel: usb 7-1.1: new low speed USB device using uhci_hcd and address 9
> kernel: usb 7-1.1: device descriptor read/64, error -71
> tortugas last message repeated 2 times
> kernel: usb 7-1.1: new low speed USB device using uhci_hcd and address 12
> kernel: usb 7-1.1: device descriptor read/64, error -71
> kernel: usb 7-1.1: device descriptor read/64, error -71
> kernel: usb 7-1.1: new low speed USB device using uhci_hcd and address 13
> kernel: usb 7-1.1: device descriptor read/64, error -71
> kernel: usb 7-1.1: device descriptor read/64, error -71
> kernel: usb 7-1.1: new low speed USB device using uhci_hcd and address 14
> kernel: usb 7-1.1: device not accepting address 14, error -71
> kernel: usb 7-1.1: new low speed USB device using uhci_hcd and address 15
> kernel: usb 7-1.1: device not accepting address 15, error -71
> kernel: hub 7-1:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
> last message repeated 3 times
> kernel: usb 7-1.1: new low speed USB device using uhci_hcd and address 20
> kernel: usb 7-1.1: device descriptor read/64, error -71
> kernel: usb 7-1.1: device descriptor read/64, error -71
> kernel: hub 7-1:1.0: Cannot enable port 1.  Maybe the USB cable is bad?
> last message repeated 2 times


-- 
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux