notification on system wide suspend
Hi,
I've got a problem with system wide suspend.
The HID layer can cause output triggered in interrupt, even interrupts caused by another device. Thus the freezer does not prevent output requests. If a HID device has been autosuspended the output request should cause the device to be woken up.
During hibernations and system wide suspends, however, output must be blocked and the request queued.
Unfortunately I can't reliably tell whether I may or may not restart the queue. The suspend() method is not called again if a device has been runtime autosuspended. Is there a notifier chain a driver can hook into?
Regards
Oliver
Hi,
Quoted 9 lines · Oliver Neukum
Hi,
I've got a problem with system wide suspend.
The HID layer can cause output triggered in interrupt, even interrupts caused by another device. Thus the freezer does not prevent output requests. If a HID device has been autosuspended the output request should cause the device to be woken up.
Quoted 6 lines
During hibernations and system wide suspends, however, output must be blocked and the request queued.
Unfortunately I can't reliably tell whether I may or may not restart the queue. The
suspend()method is not called again if a device has been runtime autosuspended. Is there a notifier chain a driver can hook into?
Not at present, but I'm going to introduce one.
Greetings,
Rafael