Linux Urb Error Codes
Contents |
Member Registered: 2009-07-24 Posts: 48 [SOLVED] USB error numbers and codes Hi there,I struggle around with some erros on usb devices.dmesg does only output error numbers like e.g.device not accepting
Usb Error Codes Linux
address 69, error -71On http://stackoverflow.com/questions/9544 … 4-error-71 I found a description what urb status this error means (error -71 is a EPROTO error).in /usr/src/linux/Documentation/usb/error-codes.txt all this codes are described but there is no usb eproto error association to the number.So how can I convert a error number to the error code described in the text file if the next time any other error appears.Cheers Framas Last edited
Usb Error Code 71
by framas (2012-09-28 12:44:18) Offline #2 2012-09-28 06:43:43 DSpider Member From: Romania Registered: 2009-08-23 Posts: 2,273 Re: [SOLVED] USB error numbers and codes https://bbs.archlinux.org/viewtopic.php?id=149384Don't forget to mark it as solved. "How to Succeed with Linux"I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if
Usb Device Not Accepting Address Error 71
you do not show any, you will NOT receive any help (at least not from me). Offline #3 2012-09-28 06:56:53 framas Member Registered: 2009-07-24 Posts: 48 Re: [SOLVED] USB error numbers and codes This thread doesn't answer my questionDSpider wrote:https://bbs.archlinux.org/viewtopic.php?id=149384Don't forget to mark it as solved. Offline #4 2012-09-28 07:04:16 DSpider Member From: Romania Registered: 2009-08-23 Posts: 2,273 Re: [SOLVED] USB error numbers and codes Are you sure? Because this one sounds awfully similar:... Sep 22 11:20:54 arch64 kernel: [ 75.716691] usb 2-4: device not accepting address 6, error -110Different numbers because it fails at different read blocks. This depends on the capacity (in gigabytes) of the flash media and the hardware reading it.Is this a laptop? If it's not, it may be related to the PSU (power supply unit). "How to Succeed with Linux"I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me). Offline #5 2012-09-28 11:25:03 framas Member
with all USB devices using something called a urb (USB request block). This request block is described with the struct usb error 32 urb structure and can be found in the include/linux/usb.h file. A urb
Linux Usb Error
is used to send or receive data to or from a specific USB endpoint on a specific USB device device not responding to setup address in an asynchronous manner. It is used much like a kiocb structure is used in the filesystem async I/O code or as a struct skbuff is used in the networking code. A https://bbs.archlinux.org/viewtopic.php?id=149708 USB device driver may allocate many urbs for a single endpoint or may reuse a single urb for many different endpoints, depending on the need of the driver. Every endpoint in a device can handle a queue of urbs, so that multiple urbs can be sent to the same endpoint before the queue is empty. The typical lifecycle of a urb is as follows: http://www.makelinux.net/ldd3/chp-13-sect-3 Created by a USB device driver.Assigned to a specific endpoint of a specific USB device.Submitted to the USB core, by the USB device driver.Submitted to the specific USB host controller driver for the specified device by the USB core.Processed by the USB host controller driver that makes a USB transfer to the device.When the urb is completed, the USB host controller driver notifies the USB device driver. Urbs can also be canceled any time by the driver that submitted the urb, or by the USB core if the device is removed from the system. urbs are dynamically created and contain an internal reference count that enables them to be automatically freed when the last user of the urb releases it. The procedure described in this chapter for handling urbs is useful, because it permits streaming and other complex, overlapping communications that allow drivers to achieve the highest possible data transfer speeds. But less cumbersome procedures are available if you just want to send individual bulk or control messages and do not care about data throughput rates. (See the Section 13.5.) 13.3.1. struct urb The fields of the struct urb
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://unix.stackexchange.com/questions/191272/where-can-i-find-a-list-of-usb-error-codes Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a usb error question Anybody can answer The best answers are voted up and rise to the top Where can I find a list of USB error codes? up vote 2 down vote favorite Every time I boot Debian, the boot log shows a bunch of xhci_hcd problems, and messages like usb 3-13: hub failed to enable device, error -22 usb 3-13: device descriptor read/8, error -61 I'm having a hard usb error code time finding out what these error codes actually mean, though. Is there anywhere that lists what all of these error codes mean? debian boot drivers usb documentation share|improve this question asked Mar 19 '15 at 18:27 Eric Dand 1135 Hmmm....you'll probably end up looking at the driver source code for the definitive answer. –mdpc Mar 19 '15 at 18:30 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote accepted The first one is EINVAL (a standard POSIX C error) inverted. If you are curious it's from line 4218 in [src]/drivers/usb/core/hub.c (v. 3.19): 4217 if (udev->state != USB_STATE_DEFAULT) 4218 return -EINVAL; The other one is from the hub_port_init() function in the same file. These kinds of error messages aren't really intended to provide more information to end users than what's there ("hub failed to enable device"), however. They're used in debugging, possibly including if you were to file a bug report. If you were hoping for documentation that will explain the problem in detail I think you are out of luck. Part of the reason for this is perhaps that there may not be any more accurate, detailed explanation that can be provided. Some things c
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 04:16:19 GMT by s_nt6 (squid/3.5.20)