On Sun, 15 Oct 2006, Oliver Neukum wrote:

> Hi,
> 
> this is a simpler interface for autosuspend on interfaces. It
> is needed for autosuspending in the HID driver.

Maybe this should just replace the original routines.  The only difference
is whether intf->pm_usage_cnt gets changed while the usb_pm_lock is held,
and that could be put into an argument like in usb_aususpend_device().

> could we please add a distinct parameter to tell drivers whether
> a suspend request originates from autosuspend or not? It would
> allow me to easily close a race in the hid autosuspend.

There already is such a flag: udev->auto_pm.  I put it in the device 
structure in order to avoid changing the existing suspend/resume API.

Alan Stern


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to