Re: Chipidea gadget unplug/disconnect event

2014-07-07 Thread Michael Grzeschik
On Sun, Jul 06, 2014 at 01:31:37PM +0800, Peter Chen wrote: > On Fri, Jul 04, 2014 at 11:54:57AM +0200, Michael Grzeschik wrote: > > On Fri, Jul 04, 2014 at 01:39:08AM +, Peter Chen wrote: > > > > > > > > > > > > > > > > > > > Yes, it has already implemented at ci_usc_vbus_session. > > > > >

Re: Chipidea gadget unplug/disconnect event

2014-07-05 Thread Peter Chen
On Fri, Jul 04, 2014 at 11:54:57AM +0200, Michael Grzeschik wrote: > On Fri, Jul 04, 2014 at 01:39:08AM +, Peter Chen wrote: > > > > > > > > > > > > > > > Yes, it has already implemented at ci_usc_vbus_session. > > > > > > > > > I see the code path in ci_udc_vbus_session of udc.c to trigger s

Re: Chipidea gadget unplug/disconnect event

2014-07-04 Thread Michael Grzeschik
On Fri, Jul 04, 2014 at 01:39:08AM +, Peter Chen wrote: > > > > > > > > > > > Yes, it has already implemented at ci_usc_vbus_session. > > > > > > > I see the code path in ci_udc_vbus_session of udc.c to trigger such > > > > an event, but unfortunately it was never possible to run into that >

RE: Chipidea gadget unplug/disconnect event

2014-07-03 Thread Peter Chen
> > > > > > > Yes, it has already implemented at ci_usc_vbus_session. > > > > > I see the code path in ci_udc_vbus_session of udc.c to trigger such > > > an event, but unfortunately it was never possible to run into that > code. > > > > > > The function ci_otg_work in otg.c is prepared to do that

Re: Chipidea gadget unplug/disconnect event

2014-07-03 Thread Michael Grzeschik
Hi Fabio, On Thu, Jul 03, 2014 at 02:04:07PM -0300, Fabio Estevam wrote: > Hi Michael, > > On Thu, Jul 3, 2014 at 1:06 PM, Michael Grzeschik wrote: > > > I validated this with two different imx25 boards and realized, > > that we have this external vbus divider errata for that SoC. > > > > Errat

Re: Chipidea gadget unplug/disconnect event

2014-07-03 Thread Fabio Estevam
Hi Michael, On Thu, Jul 3, 2014 at 1:06 PM, Michael Grzeschik wrote: > I validated this with two different imx25 boards and realized, > that we have this external vbus divider errata for that SoC. > > Errata: ENGcm09152 > > Its likely that the issue is related to this problem as the vbus was > n

Re: Chipidea gadget unplug/disconnect event

2014-07-03 Thread Michael Grzeschik
On Thu, Jul 03, 2014 at 01:19:21AM +, Peter Chen wrote: > > > > > Is it possible to get the chipidea to generate an event on udc unplugging? > > > > Yes, it has already implemented at ci_usc_vbus_session. > > > I see the code path in ci_udc_vbus_session of udc.c to trigger such an > > eve

RE: Chipidea gadget unplug/disconnect event

2014-07-02 Thread Peter Chen
> > Is it possible to get the chipidea to generate an event on udc unplugging? > Yes, it has already implemented at ci_usc_vbus_session. > I see the code path in ci_udc_vbus_session of udc.c to trigger such an > event, but unfortunately it was never possible to run into that code. > > The fu

Chipidea gadget unplug/disconnect event

2014-07-02 Thread Michael Grzeschik
Hi Peter, Is it possible to get the chipidea to generate an event on udc unplugging? I see the code path in ci_udc_vbus_session of udc.c to trigger such an event, but unfortunately it was never possible to run into that code. The function ci_otg_work in otg.c is prepared to do that in case the i