Re: USB resume guarantees

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Am Sonntag 11 November 2007 schrieb Tilman Schmidt:
> From reading Documentation/usb/power-management.txt I gathered
> the impression that suspend and resume/reset_resume calls would
> be paired, iow I could rely on either resume or reset_resume
> being called once for every call of suspend, but obviously that
> ain't so. So what are the possible sequences of events my driver
> must be prepared to cope with?

probe()
		-> disconnect()
		-> suspend()	-> disconnect()
		-> suspend()	-> resume() 		->BACK
		-> suspend()	-> reset_resume()	->BACK	(optional)
		-> pre_reset()	-> disconnect()
		-> pre_reset()	-> post_reset()		->BACK

As a device may be physically unplugged at all times, you must be ready
to handle disconnect() at any time.

	Regards
		Oliver

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[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.