pm: device_runtime: add zephyr,pm-device-runtime-auto
Add the `zephyr,pm-device-runtime-auto` flag to `pm.yaml` and `struct pm_device`. This flag is intended to signify to the boot system that device runtime PM should be automatically enabled on the device after the init function has run. Only run `pm_device_runtime_auto_enable` function on a device if initialisation succeeded. This prevents actions being run on devices that are not ready. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
f1111dd679
commit
db3d51bb7d
5 changed files with 54 additions and 8 deletions
|
@ -24,3 +24,9 @@ properties:
|
|||
|
||||
The device will be notified when the power domain it belongs to is either
|
||||
suspended or resumed.
|
||||
|
||||
zephyr,pm-device-runtime-auto:
|
||||
type: boolean
|
||||
description: |
|
||||
Automatically configure the device for runtime power management after the
|
||||
init function runs.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue