Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I would not even bother trying to do this via a web tutorial, but YMMV. Try google. Unfortunately, for some reason the GNU on-line documentation for the kernel (http://www.gnugeneration.com/books/l...20/kernel-api/) does not include any of the numerous usb_ functions!
However, there are at least 2-3 books in print on linux device drivers. Which I guarantee that this is going to take you some time, so you might as well dish for a book.
Not sure why you would want to do this either, since the host controller driver is already there.
I would not even bother trying to do this via a web tutorial, but YMMV. Try google. Unfortunately, for some reason the GNU on-line documentation for the kernel (http://www.gnugeneration.com/books/l...20/kernel-api/) does not include any of the numerous usb_ functions!
However, there are at least 2-3 books in print on linux device drivers. Which I guarantee that this is going to take you some time, so you might as well dish for a book.
Not sure why you would want to do this either, since the host controller driver is already there.
Thanks. But I need to debug a host driver that is already supplied by the vendor and I want to have idea of the host driver execution flow.
I have searched google / books, but I found the lot of docs for USB device driver writing only. Thats why I seek the help from linux community.
Thanks. But I need to debug a host driver that is already supplied by the vendor and I want to have idea of the host driver execution flow.
I have searched google / books, but I found the lot of docs for USB device driver writing only. Thats why I seek the help from linux community.
If you mean the linux USB host driver (singular, since there is only one of each flavour), that is part of the official kernel source and you should contact the official maintainers named in the code.
If you are using something else I think you are gonna have a tough time; the documentation for (linux specific) USB driver programming is not even that extensive, beyond a few books, and the books I have do not bother with the host controller since it already exists. However, there is much interaction with the host controller, so depending on how extensive this debugging task is, you may need to get a grasp on that first.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.