Skip to content

Integrating struct class_device into power management framework

Dmitry Torokhov linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Use kobject_name() to access kobject namesdrivers/base/power/main.c+4 -20 replies
2/3Allow objects other than "struct device" in pm listdrivers/base/power/main.c drivers/base/power/power.h drivers/base/power/resume.c +6 more+207 -1174 replies
3/3add class_devices to power management listdrivers/base/class.c drivers/base/power/main.c drivers/base/power/power.h +3 more+135 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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