Skip to contentSkip to conversation

notification on system wide suspend

DISCUSSION Oliver Neukum 2 participants 2 messages May 22, 2007

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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