Re: Weird Behavior on OTG

Hamish Moffatt <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
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.

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?


Hamish
-- 
Hamish Moffatt VK3SB <[email protected]> <[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.