Hi, On Wed, Sep 28, 2011 at 11:12:55AM -0700, Paul Zimmerman wrote: > > > @@ -1161,6 +1165,8 @@ static int dwc3_gadget_start(struct usb_gadget *g, > > > reg |= DWC3_DCFG_SUPERSPEED; > > > dwc3_writel(dwc->regs, DWC3_DCFG, reg); > > > > > > + dwc->config_start = false; > > > > not needed. > > > > > @@ -1592,6 +1598,7 @@ static void dwc3_gadget_disconnect_interrupt(struct dwc3 *dwc) > > > > > > dwc3_stop_active_transfers(dwc); > > > dwc3_disconnect_gadget(dwc); > > > + dwc->config_start = false; > > > > not needed. > > > > > @@ -1644,6 +1651,7 @@ static void dwc3_gadget_reset_interrupt(struct dwc3 *dwc) > > > > > > dwc3_stop_active_transfers(dwc); > > > dwc3_clear_stall_all_ep(dwc); > > > + dwc->config_start = false; > > > > not needed. > > With the possible exception of this last one, I'm pretty sure these are all > needed. Can you explain why you think they are not? you must go through a set_config() in order to get that dwc3_gadget_start_config() called. Then you always set it to false in the beginning of our set_config() handler. Sounds a bit unnecessary to me to set it to false in so many places. -- balbi
Attachment:
signature.asc
Description: Digital signature