Skip to content

Commit b4b1212

Browse files
gmarullnashif
authored andcommitted
doc: release notes: add details on device PM changes
Add some details on the changes made in the device power management area (callback simplification). Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
1 parent f647a5c commit b4b1212

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/releases/release-notes-2.7.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,17 @@ Libraries / Subsystems
463463
* ``device_busy_check`` -> ``pm_device_is_busy``
464464
* ``device_any_busy_check`` -> ``pm_device_is_any_busy``
465465

466+
* The device power management callback (``pm_device_control_callback_t``) has
467+
been largely simplified to work based on *actions*, resulting in simpler and
468+
more natural implementations. This principle is also used by other OSes like
469+
the Linux Kernel. As a result, the callback argument list has been reduced
470+
to the device instance and an action (e.g. ``PM_DEVICE_ACTION_RESUME``).
471+
Other improvements include specification of error codes, removal of some
472+
unused/unclear states, or guarantees such as avoid calling a device for
473+
suspend/resume if it is already at the right state. All these changes
474+
together have allowed simplifying multiple device power management callback
475+
implementations.
476+
466477
* Logging
467478

468479

0 commit comments

Comments
 (0)