Hi Marek,

On Sun, Nov 17, 2013 at 11:59:10PM +0100, Marek Vasut wrote:
> Dear Peter Chen,
> 
> > > Probe the usbmisc driver earlier, otherwise the ci_hdrc_imx.c will
> > > get -EPROBE_DEFER from usbmisc when both are compiled into the kernel
> > > and thus USB gadget mode won't work.
> > 
> > Hi Marek, you know the root cause of it, you suggested using
> > a better way to fix it.
> > 
> > http://marc.info/?l=linux-usb&m=138060107809076&w=2
> 
> Argh, I see. So what's the solution here really ?

I think one solution here is to load the composite
driver as a module, after you are sure the corresponding
udc is already registered.

Alternativly, we also have the configfs interface now. Look into:

Documentation/usb/gadget_configfs.txt

It should be possible to attach an udc to the gadget-driver
afterwards with:

echo $UDC_NAME > $CONFIGFS_HOME/usb_gadget/$GADGET_NAME/UDC

Regards,
Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to