Skip to content

Conversation

@nordic-krch
Copy link
Contributor

Add pm_policy_state_all_lock_get and pm_policy_state_all_lock_put for fast locking and unlocking of all PM states.

Additional cherry-picks needed to get the clean merge.

decsny and others added 5 commits November 26, 2025 13:40
I am surprised this notifier didn't already report the substate id, it
seems important since different substate obviously are defined for a
reason, they can be having a different effect on the system.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
(cherry picked from commit ae1f131)
Add two helper functions to convert power management states between
enum and string:

- pm_state_to_string()
- pm_state_from_string()

Signed-off-by: Yongxu Wang <yongxu.wang@nxp.com>
(cherry picked from commit 8767cec)
Some pieces of the system may have custom types of constraints that they
define based on different effects and reasons than just the standard
"zephyr,disabling-states". To avoid every single one of these component
reinventing the wheel, make some common APIs to handle these type of
custom constraint lists.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
(cherry picked from commit a4225b1)
Add function for getting and putting a lock for all power states.
It is much faster version of requesting 0 us latency with actual
intention to disable all power states.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
(cherry picked from commit 336e89e)
Add test case that validates behavior of pm_policy_state_all_lock_get
and pm_policy_state_all_lock_put.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
(cherry picked from commit 3595c9d)
NordicBuilder added a commit to NordicBuilder/sdk-nrf that referenced this pull request Nov 26, 2025
Automatically created by action-manifest-pr GH action from PR:
nrfconnect/sdk-zephyr#3542

Signed-off-by: Nordic Builder <pylon@nordicsemi.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants