On Sunday 02 January 2005 1:16 pm, Thomas Brinker wrote: > Hi! > > Am Samstag, 1. Januar 2005 18:18 schrieb David Brownell: > > What sort of details are you looking for? > > I'm looking for some general information about what you have to do in order > to > implement some udc-drivers. The existing drivers (pxa/net2280) are full of > pci/dma and hardware specific stuff, so that you cant see the main thing any > more.
The "main thing" is to implement the various methods correctly; there's a test framework to help make sure you're interpreting the API specification (kerneldoc, mostly in <linux/usb_gadget.h>) correctly. The problem is that "correctly" is going to depend on lots of hardware-specific details, and you won't find the relevant details without testing. If you have specific questions, feel free to ask them; otherwise I suspect that this is a case where the only way to learn is by doing. In this case, by debugging the driver, and making it work with all the drivers in the 2.6.10 kernel tree. Start with Gadget Zero, a reference "known good" driver; and all the "usbtest" cases (#9, #10, #14 for control transfers, #1..#8 for bulk in/out, and #13 for bulk endpoint halts); then use the other gadget drivers, each one of them tends to uncover a different set of issues. > Tomorrow I will start the debug and testing phase on my udc-driver but I am > still unsure if I have implemented everthing witch is necessary. If you haven't got at least a week of debugging and bugfixing for that driver under your belt, it's almost certain there will be bugs. Likewise, if you've only tested with one driver. As a rule, software developers are usually happy having an accurate and complete API spec, along with a test suite. (All too often they get neither one!) So I'm unclear on what else you'd need. - Dave > The website at http://www.linux-usb.org/gadget is familiar to me. > > -- > Wo kämen wir hin, wenn alle sagten, wo kämen wir hin, > und niemand ginge, um einmal zu schauen, wohin man käme, > wenn man ginge. > «Kurt Marti» > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > linux-usb-devel@lists.sourceforge.net > To unsubscribe, use the last form field at: > https://lists.sourceforge.net/lists/listinfo/linux-usb-devel > ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel