Integrating struct class_device into power management framework
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Use kobject_name() to access kobject namesdrivers/ | +4 | 0 replies | |
| 2/3 | Allow objects other than "struct device" in pm listdrivers/ drivers/ drivers/ +6 more | +207 | 4 replies | |
| 3/3 | add class_devices to power management listdrivers/ drivers/ drivers/ +3 more | +135 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC/PATCH 0/3] Integrating struct class_device into power management framework
Hi,
The following patches integrate class devices into common PM framework. Classes can define 2 new methods: pause() and restart() that will be called at suspend and resume time respectively. This will ease hardware driver's tasks at suspend and resume time by moving common code into classes.
The advantages of integrating class_device over moving to struct device:
- no need to reshuffle entire kernel, subsystems can be converted one by one without a flag day;
- struct device will not become a kitchen sink.
--
Dmitry