Hi Michael,

> 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

Sure, but all these need manual intervention or are otherwise limited. One 
would 
expect this probing would work automagically (and it usually does). Thus my 
question.

Best regards,
Marek Vasut
--
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