Re: [PATCH v11 13/14] usb: gadget: udc: adapt to OTG core

2016-06-13 Thread Roger Quadros
On 13/06/16 10:56, Peter Chen wrote: > On Mon, Jun 13, 2016 at 10:55:12AM +0300, Roger Quadros wrote: >> err1: >> -if (ret != -EISNAM) >> +if ((ret != -EISNAM)) > > Since you do not need above change. Ah :P, will fix it. > > Expect above, I am ok with this patch. > > Acked-by: Peter

Re: [PATCH v11 13/14] usb: gadget: udc: adapt to OTG core

2016-06-13 Thread Peter Chen
On Mon, Jun 13, 2016 at 10:55:12AM +0300, Roger Quadros wrote: > err1: > - if (ret != -EISNAM) > + if ((ret != -EISNAM)) Since you do not need above change. Expect above, I am ok with this patch. Acked-by: Peter Chen > dev_err(>dev, "failed to start

[PATCH v11 13/14] usb: gadget: udc: adapt to OTG core

2016-06-13 Thread Roger Quadros
The OTG state machine needs a mechanism to start and stop the gadget controller as well as connect/disconnect from the bus. Add usb_gadget_start(), usb_gadget_stop() and usb_gadget_connect_control(). Introduce usb_otg_add_gadget_udc() to allow controller drivers to register a gadget controller