Re: Re: Hotplug events during sleep transition

Pavel Machek
2005-12-23T17:20:57Z

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

Hi!

> > All you
> > have to do for each suspend routine is mimic that effect. It arguably
> > doesn't require any serious knowledge about the device - it only needs a
> > copy of the ->probe() and ->remove() routines (or the functional
> > equivalent for those devices), without the allocation and freeing of data
> > structures.
>
> Why go to all the trouble of copying probe and remove when we can call the
> actual existing routines?

Well, if you can find some elegant solution in the core, I think thats
the best way.

You could set system_state to "suspending" or something like that, and
just if() out notifications in that case.
Pavel

--
Thanks, Sharp!