Hotplug events during sleep transition

Alan Stern
2005-12-22T14:28:16Z

[-- Attachment #1: Type: TEXT/PLAIN, Size: 609 bytes --]

Pavel & Greg:

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?

Alan Stern