Hi, On Fri, Feb 08, 2013 at 06:23:13PM +0200, Felipe Balbi wrote: > +int dwc3_gadget_prepare(struct dwc3 *dwc) > +{ > + dwc3_gadget_disable_irq(dwc); > + > + return 0; > +} > + > +void dwc3_gadget_complete(struct dwc3 *dwc) > +{ > + dwc3_gadget_enable_irq(dwc); > + > + if (dwc->pullups_connected) > + dwc3_gadget_run_stop(dwc, true); > +}
just thought of another problem with prepare() and complete() implementation: If I never loaded a gadget driver, I shouldn't try to disable()/enable() IRQs. I'll sort this out on monday. -- balbi
signature.asc
Description: Digital signature