[PATCH v8 8/8] usb: chipidea: udc: fix the oops when plugs in usb cable after rmmod gadget

Chen Peter-B29397 B29397 at freescale.com
Wed Feb 27 03:57:07 EST 2013


 
> > > >  		} else {
> > > > +			if (ci->driver)
> > > > +				ci->driver->disconnect(&ci->gadget);
> > >
> > > This looks wrong. Why do you need to call ->disconnect() here ?
> >
> > When we disconnect usb cable from the host, we need to notify gadget
> module
> > disconnection occurs, the gadget module may not be unloaded in future.
> 
Sorry, can you point that?

Peter,




More information about the linux-arm-kernel mailing list