On Wed, 2004-11-03 at 01:02 +0100, Pavel Machek wrote: > Hi! > > > > Actually, request_firmware_nowait does not help. Userland would see > > > non-functional hardware after resume but before > > > request_firmware_nowait() is done. That would hurt for example with > > > nfsroot and firmware over nfs, or just general confusion "why is this > > > f***ing network card broken". > > > > Hrm... suspending with NFS root seems to be quite an acrobatic exercice > > anyway, but I see your point. Still, a synchronous request_firmware is > > broken anyway, while the nowait version may work. > > > > > Solution seems to be "do request_firmware before suspend begins, and > > > cache it in memory". > > > > Which requires knowing when it is safe to rely on userland, which means > > having ways to be notified before the whole suspend/resume process > > starts as we already discussed. I'm still wondering if that could be > > done via separate PM_* messages (PM_PRE_SUSPEND, PM_POST_RESUME) or > > via a simple notifier... > > PM_PRE_SUSPEND sounds good. (That would be event = ON, flags = > PM_PRE_SUSPEND, right? :-) Is there any real use for PM_POST_RESUME? I don't think those should use existing events... Well, you need to know when userland stops beeing useable, _and_ when is starts beeing available again... Ben.