[PATCH v4 0/7] Add fully tested id switch and vbus connect detect support for Chipidea

Peter Chen peter.chen at freescale.com
Wed Jan 9 20:38:29 EST 2013


On Wed, Jan 09, 2013 at 12:43:38PM +0100, Maxime Ripard wrote:
> Hi Peter,
> 
> Thanks for your answer.
> 
> 
> > Please always enable both device and host mode for chipidea driver.
> > Current code still not consider all things for different mode config,
> > like device-only, host-only, otg.  In future, it is supposed to do
> > at dts file, and judge probe.
> 
> Then isn't the gadget mode configuration option supposed to depends on
> the host mode if it's known to be broken otherwise?

At udc, it uses otg_set_peripheral, which depends on otg. OTG depends on
both host and device are enabled.

In fact, we don't need to use otg_set_peripheral at udc if all usb part
is in chipidea driver, but currently, msm also uses chipidea/udc.c, and
its otg and host is out of chipidea/

I am working on suspend/resume, low power mode and wakeup on chipidea driver.
After that, I will work on it.

> 
> Thanks,
> Maxime
> 
> -- 
> Maxime Ripard, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
> 

-- 

Best Regards,
Peter Chen




More information about the linux-arm-kernel mailing list