Re: Hotplug events during sleep transition

Pavel Machek
2005-12-22T14:34:49Z

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

Hi!

> I recently worked on a patch to unbind USB drivers that don't have
> suspend/resume methods, and then rebind them when the system comes back
> up. There was an unexpected effect: In some cases the unbind or rebind
> operations caused hotplug events, which started up new user processes at a
> time when everything was supposed to be frozen. Obviously this is not a
> good thing.
>
> Is there some other way these sorts of events can be handled? For
> instance, can the hotplug system be smart enough to delay creating the new
> processes? Or can they be created already in a frozen state?

There were some problems with this already... but I do not recall what
the solution was. lkml thread, IIRC. Were it PCMCIA cards or something
like that?
Pavel

--
Thanks, Sharp!