Re: modifications to new generic autosuspend code

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Am Donnerstag, 15. Februar 2007 22:06 schrieb Alan Stern:
> There are two main disadvantages to the less-strict scheme.  One is that 
> the timing of autosuspends isn't as precise: If the timer goes off every 
> 10 seconds, then a suspend could occur anywhere between 10 and 20 seconds 
> after the device becomes idle.  IMO this doesn't matter very much.

I've looked at this again. It seems to me that if usb_autoresume_device()
doesn't kill the timer, usb_probe_interface() will race with autosuspend.
Specifically, you might autosuspend an interface without calling its driver's
suspend() method, if the timer expires on another CPU.

	Regards
		Oliver

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.