RE: Chipidea in device mode & VBUS

2016-03-31 Thread Svetoslav Neykov
>If you find it can't work, there are may be something wrong at other places, >eg, the gadget driver is not >loaded successfully. Would you please help to >check more? Found the problem in my setup. The patch is working great now. Thanks, Svet. -- To unsubscribe from this list: send the line

Re: Chipidea in device mode & VBUS

2016-03-29 Thread Peter Chen
On Tue, Mar 29, 2016 at 10:15:41PM +0300, Светослав Нейков wrote: > //adding cc to linux-usb ml > > 2016-03-29 7:55 GMT+03:00 Peter Chen : > > Would you please try below patch to see if it works for you: > > With the patch applied the code enters "ci_udc_vbus_session", but too early, > before the

Re: Chipidea in device mode & VBUS

2016-03-29 Thread Светослав Нейков
//adding cc to linux-usb ml 2016-03-29 7:55 GMT+03:00 Peter Chen : > Would you please try below patch to see if it works for you: With the patch applied the code enters "ci_udc_vbus_session", but too early, before the gadget driver is loaded - during the probe of ci_hdrc. This means that "ci->dri

Re: Chipidea in device mode & VBUS

2016-03-28 Thread Peter Chen
On Mon, Mar 28, 2016 at 9:50 PM, Светослав Нейков wrote: > Thanks for the quick response Peter. I am powering the board from the > host, so VBUS is on as long as the device is powered. In this case > extcon doesn't apply. But it's a nice option if alternative power is > provided. > This is not a c

Re: Chipidea in device mode & VBUS

2016-03-28 Thread Светослав Нейков
Thanks for the quick response Peter. I am powering the board from the host, so VBUS is on as long as the device is powered. In this case extcon doesn't apply. But it's a nice option if alternative power is provided. This is not a commercial project, I am using a hacked WR-703N router, so certificat

Re: Chipidea in device mode & VBUS

2016-03-27 Thread Peter Chen
On Sat, Mar 26, 2016 at 06:57:26PM +0200, Svetoslav Neykov wrote: > I'm trying to use the chipidea driver in device mode on an AR9331 SOC board. > I've got it mostly working but can't figure out how to enable vbus_active. > Some details - the system supports both host & device modes, but not OTG. >

Chipidea in device mode & VBUS

2016-03-26 Thread Svetoslav Neykov
I'm trying to use the chipidea driver in device mode on an AR9331 SOC board. I've got it mostly working but can't figure out how to enable vbus_active. Some details - the system supports both host & device modes, but not OTG. The mode is selected at startup and there are no OTG registers exposed. A