Hi Hamish, On 4/27/07, Hamish Moffatt <[EMAIL PROTECTED]> wrote: > On Fri, Apr 27, 2007 at 03:34:28PM +0300, Felipe Balbi wrote: > > > > On 4/27/07, Hamish Moffatt <[EMAIL PROTECTED]> wrote: > > > On Fri, Apr 27, 2007 at 03:17:42PM +0300, Felipe Balbi wrote: > > > > Hi again, > > > > > > > > The problem is even bigger. It only works when I build g_ether > > > > statically > > > > weird. > > > > > > > > On 4/27/07, Felipe Balbi <[EMAIL PROTECTED]> wrote: > > > > > Hello all, > > > > > > > > > > I was testing OTG functionalities with tusb6010 (n800) with latest > > > > > omap tree. > > > > > What i've found weird is that if the gadget side I build as modules, > > > > > the host side doesn't work. > > > > > > > > > > Anybody knows how's that happening? > > > > > > How can you have g_ether static and the gadget driver as a module? > > > The emulation (g_ether, g_serial etc) calls functions in the driver > > > (usb_gadget_register_driver etc). > > > Think you got it wrong. > > > > When I build g_ether and g_file_storage as module. TUSB6010 stops > > working (on otg mode). > > When I build g_file_storage static, tusb stops working. > > > > when I build g_ether static, tusb works again. > > > > that's what's happening... > > Please don't top post. > > So, you build g_ether static, omap_udc(?) as a module, and the host works? > Does the gadget actually work? I suspect not, I can't see how it would > since usb_gadget_register_driver() etc don't exist until you load the > gadget module.
As I told on my first email, I'm using tusb6010. And it's my dual role controller, it works as OTG, taking care of Host and Gadget modes. The only thing being build as module/static are the gadget themselves. g_ether.o and g_file_storage.o > I don't have much experience with the usb gadget stuff. But perhaps you > could be a bit clearer about which combinations actually work, and > whether both host AND gadget work in each case? tusb6010 + OTG Mode + g_ether static = this combination works. tusb6010 + OTG mode + g_ether module = not working. tusb6010 + OTG mode + g_file_storage static = not working tusb6010 + OTG mode + g_file_storage module = not working. These are the 4 scenarios I've tested. -- Best Regards, Felipe Balbi [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
