On 12/22/05, Pavel Machek <pavel@xxxxxxx> wrote: > 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? It was serio layer. I just ensured that all hotplug events are generated from serio thread thus making sure that we won't see them during suspend. -- Dmitry