Re: [PATCH 2/2] [RFC] pl2303 autosuspend
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 25 Oct 2007, Sarah Sharp wrote: > However, I think it will break with kernel swsuspend (and writing "suspend" to > the level sysfs file) if the tty is open. "swsuspend" is an outmoded term. Nowadays people talk about "suspend" and "hibernate" -- I'm guessing you mean "hibernate" here. This shouldn't cause any problems if the tty is open because no user process could access the tty when the driver's suspend routine is called, since all of userspace gets frozen at the start of a system suspend or hibernation. > I'm looking for suggestions on how to > make it work, along with any other comments. I was looking at taking some of > the code out of the pl2303's close function and putting into a separate kill > traffic function, but I think it would require some work to be able to be called > in interrupt context (as I think would be the case with a swsuspend?). No. The PM core calls drivers' suspend & resume methods in process context. Alan Stern ------------------------------------------------------------------------- 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