RFC device wakeup event support
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 54 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | devcore introduce wakeup_event callbackinclude/ | +3 | 0 replies | |
| 1/5 | devcore introduce wakeup_event callbackinclude/ | +3 | 18 replies | |
| 2/5 | devcore adds generic wakeup event handlerdrivers/ include/ | +8 | 0 replies | |
| 2/5 | devcore adds generic wakeup event handlerdrivers/ include/ | +8 | 0 replies | |
| 3/5 | pci wakeup handlerdrivers/ | +46 | 0 replies | |
| 3/5 | pci wakeup handlerdrivers/ | +46 | 18 replies | |
| 4/5 | PCIe native PME detectiondrivers/ drivers/ drivers/ +1 more | +351 | 0 replies | |
| 4/5 | PCIe native PME detectiondrivers/ drivers/ drivers/ +1 more | +351 | 4 replies | |
| 5/5 | ACPI GPE based wakeup event detectiondrivers/ drivers/ drivers/ +1 more | +94 | 0 replies | |
| 5/5 | ACPI GPE based wakeup event detectiondrivers/ drivers/ drivers/ +1 more | +94 | 10 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC 0/5] device wakeup event support
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.
The current process to handle wakeup event is:
1. driver enable wakeup event line pme and suspend
2. NPME or ACPI receives wakeup event
3. NPME or ACPI call .wakeup_event() to clear and disable wakeup event. Driver can do extra things in .wakeup_event() too.
4. NPME or ACPI call generic wakeup event handler (device_receive_wakeup_event())
5. device resumes, and goto 1 for next round of suspend
There are somethings we need discuss:
1. is this generic for other platforms?
2. what should the generic wakeup event handler do?
Comments and suggestions are welcome!