> -----Original Message----- > From: David Brownell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 12:04 AM > To: Todd Fischer > Cc: Usb > Subject: Re: [linux-usb-devel] file_storage.c stalling the out bulk > endpoint, but not clearing the stall > > > Todd Fischer wrote: > > > I am developing a UDC for the TI DM270 which has a UDC tailored for a > > digital camera use model. I had to create separate ep1in and ep1out > > endpoint instead of a single bidi ep to make file_storage.c (and zero.c) > > happy. > > Was that particularly troublesome? That particular hardware model > seems a bit esoteric, but I suspect half duplex protocols shouldn't > need a controller-specific call to change direction. > > - Dave
Dave, It was straight forward to expose the UDC's capabilities to the gadget driver once I understood the gadget framework. I started with the test zero driver and a single bidi bulk endpoint entry. I had to scratch my head a bit trying to figure out why the zero driver couldn't use both directions when the parser in epautoconf.c used to identify the endpoint capabilities understood the concept of a bidi endpoint. After changing the table to contain two unidirectional entries instead of one bidi entry, the gadget drivers were happy. I have some notes about other aspects of the gadget framework I do not understand (like the zero field in a request), but am holding off asking questions or proposing changes to the DocBook documentation until the OTG changes settle out. Overall, I found the division between the gadget driver and the UDC driver to be well engineered. I didn't add any UDC specific changes to the gadget driver (except for the mod_data.release related code). There is only a couple of places in the UDC code where I am still confused (like the ZLP mentioned above). I need to be brave and try the UDC with the network gadget driver and see what other UDC problems turn up. Todd ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
