Re: Re: Hotplug events during sleep transition

Pavel Machek
2006-01-04T23:31:58Z

[-- Attachment #1: Type: text/plain, Size: 699 bytes --]

On St 28-12-05 21:18:38, Alan Stern wrote:
> On Wed, 28 Dec 2005, Rafael J. Wysocki wrote:
>
> > I think for a (suspended) device that can be removed, unplugged, undocked,
> > etc. (call it "removable") the most natural place in which we can detect
> > that the device is no longer accessible is the device driver's .resume()
> > routine, at least as far as swsusp is concerned.
>
> No. The most natural place in which we can detect that a device is no
> longer accessible is the place where we already do these detections. Not
> in the resume routine.

...for reasonable buses, like usb. For something like ps/2, .resume is
the place to check, I'm afraid.

Pavel

--
Thanks, Sharp!