11 Sep 08:30
[RFC 0/5] device wakeup event support v2
From: Shaohua Li <shaohua.li <at> intel.com>
Subject: [RFC 0/5] device wakeup event support v2
Newsgroups: gmane.linux.power-management.general
Date: 2008-09-11 06:30:37 GMT
Subject: [RFC 0/5] device wakeup event support v2
Newsgroups: gmane.linux.power-management.general
Date: 2008-09-11 06:30:37 GMT
This series add device wakeup event detection support. This is the base to implement runtime device suspend/resume, though we don't support it now. But David said USB is approaching to this. See this bugzilla http://bugzilla.kernel.org/show_bug.cgi?id=6892 for detail. changes v1 -> v2: 1. scan pci bridge for PME. Current implementation is just doing scan if target device is a bridge 2. move device_receive_wakeup_event() call to pci, and provide an API (pci_handle_wakeup_event()) for non-ACPI & non-PCIe platform 3. fixed a lot of coding style issues Signed-off-by: Shaohua Li <shaohua.li <at> intel.com> -- --
Use 'bool' for functions that are intended as boolean, eg.
'system_entering_hibernation()' will return 'true' if the system is entering
hibernation at the moment and 'false' otherwise, but for functions like
pci_handle_one_wakeup_event() the standard it to return 0 on success, so IMO
we should follow the standard.
HTH
RSS Feed