Set the value of `pm->state` as we move through the various stages of `pm_device_driver_init`. This ensures hat if any of the code inside the actions callbacks runs `pm_device_state_get` they get the correct state, instead of always getting `PM_DEVICE_STATE_ACTIVE` (0, the value at reset). Signed-off-by: Jordan Yates <jordan@embeint.com> |
||
|---|---|---|
| .. | ||
| policy | ||
| CMakeLists.txt | ||
| device_runtime.c | ||
| device_system_managed.c | ||
| device_system_managed.h | ||
| device.c | ||
| Kconfig | ||
| pm_shell.c | ||
| pm_stats.c | ||
| pm_stats.h | ||
| pm.c | ||
| state.c | ||