Re: [PATCH v5 3/3] usb: udc: add usb_udc_activation_handler

2015-02-03 Thread Peter Chen
On Tue, Feb 03, 2015 at 12:04:08PM +0200, Alexander Shishkin wrote: > Peter Chen writes: > > > Currently, connect gadget is unconditional after binding, > > but some function drivers may want to connect gadget on the fly. > > With this API, the function driver can disconnect gadget during > > the

Re: [PATCH v5 3/3] usb: udc: add usb_udc_activation_handler

2015-02-03 Thread Alexander Shishkin
Peter Chen writes: > Currently, connect gadget is unconditional after binding, > but some function drivers may want to connect gadget on the fly. > With this API, the function driver can disconnect gadget during > the initialization, and connect gadget when it wants. > > During this API, the deac

[PATCH v5 3/3] usb: udc: add usb_udc_activation_handler

2015-01-28 Thread Peter Chen
Currently, connect gadget is unconditional after binding, but some function drivers may want to connect gadget on the fly. With this API, the function driver can disconnect gadget during the initialization, and connect gadget when it wants. During this API, the deactivation count will be update, a