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 <hzpeterchen@xxxxxxxxx>: > > 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->driver" is null, so it doesn't enter the gadget_active section. > When the gadget driver is loaded, it will call ci_udc_start, and the udc will be initialized as device mode and pull dp up, in that case, the host will find the port connection. The purpose for this design is just to set ci->vbus_active as true for your situation. 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? -- Best Regards, Peter Chen -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html