On Wed, 11 May 2005, David Brownell wrote:

> > > There might be a way out though:  adding a NOP shutdown method
> > > to the driver that usb_register() creates.  (And maybe adding
> > > such an entry to struct usb_driver ... so the usbcore NOP method
> > > only gets used for drivers that don't provide their own.)
> > 
> > I don't see what adding a shutdown method has to do with drivers that
> > don't support suspend/resume.  Anyway, the dpm_sem problem still needs to
> > be fixed in the PM core.
> 
> When you look, I think you'll see that adding a shutdown method
> will prevent the dpm_runtime_suspend() deadlock.  There might
> be another one though.

How about simply setting intf->dev.detach_state to 0?  
device_detach_shutdown() won't do anything in that case.

In fact, isn't it supposed to be 0 by default?  The value is meaningless
for interfaces anyway.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to