Re: UNS: Re: [PATCH] musb: move usb_add_hcd to the core init codefrom gadget code (v2)

From: Brad Parker
Date: Mon Jan 10 2011 - 09:08:25 EST


Felipe Balbi wrote:
Hi,

On Mon, Jan 10, 2011 at 06:47:58AM -0500, Brad Parker wrote:
...
(my expectation is that the mode should toggle from "b_idle" to "a_host"
when I plug in an a connector with the id pin tied correctly, and
back to "b_idle"
when I disconnect)
What's the problem in simply insmoding a gadget driver ? If you have OTG
enabled, you _need_ a gadget driver to have a fully working setup. If
you want host only, then change Kconfig
I guess there are multiple "modalities".

- some users don't use a gadget driver and expect host mode to work (they fail)
- some users use a gadget driver and host mode (apparently that works)
- some users use a gadget driver only (they work)

I'd like to avoid having multiple kernels. (and to be honest, I'm not convinced
just convince I can get the right behaviors by changing the .config; I assume
you mean .config and not Kconfig... I don't think it works but I'll try it out)

-brad

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/