zephyr/subsys
Flavio Ceolin a6d34becb5 pm: device_runtime: Keep enable behavior consistent
It is not possible to rely on pm->dev to do lazy initialization of
some components. For example, in the follow sequence of commands:

1 - pm_device_runtime_enable()
  pm->state == PM_DEVICE_STATE_SUSPENDED;
2 - pm_device_runtime_disable()
  pm->state == PM_DEVICE_STATE_ACTIVE;
3 - pm_device_runtime_enable()
  pm->state == PM_DEVICE_STATE_ACTIVE

After the first time pm_device_runtime_enable(), the device state will
be suspended, but after the second time this function executes the state
will be active. That is not consistent.

It is just easier to remove the branch check and always set those
fields for the sake of consistent.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2021-12-13 20:38:52 -05:00
..
bluetooth Bluetooth: Mesh: check cfg cli status param 2021-12-13 20:37:12 -05:00
canbus drivers: can: deprecate the use of CAN-specific error return values 2021-12-09 12:37:40 -05:00
console console: Kconfig: Remove EXPERIMENTAL marker 2021-10-22 09:46:22 -04:00
cpp ARC: MWDT: get rid of MWDT startup libs 2021-09-01 17:08:32 -04:00
debug xtensa: introduce support for GDB stub 2021-11-30 15:24:00 -05:00
demand_paging demand_paging: eviction/nru: fix incorrect dirty bit return val 2021-09-20 19:43:02 -04:00
dfu dfu: boot: Add implementation for multi-image swap type check 2021-08-26 09:13:13 -04:00
disk
emul i2c: emul: Add get_config function 2021-11-02 16:46:33 +01:00
fb samples: use chosen property to get default display controller 2021-12-10 12:47:30 +01:00
fs fs: littlefs: Add processing of FS_MOUNT_FLAG_USE_DISK_ACCESS flag 2021-12-06 08:08:26 -05:00
ipc ipc: use highest coop priority for IPM workqueue 2021-11-24 18:59:02 +01:00
jwt jwt: mbedTLS requires csprng 2021-10-07 14:02:40 -05:00
logging log_backend_net: local_addrX may be used uninitialized 2021-12-09 19:53:17 -05:00
lorawan kconfig: lorawan: experimental settings now uses select EXPERIMENTAL 2021-10-25 10:46:48 +02:00
mgmt samples: subsys: mcumgr: Remove deprecated <power/reboot.h> header 2021-12-10 10:30:41 +01:00
modbus modbus: copy trans_id & proto_id to response header 2021-08-26 06:56:25 -04:00
net drivers: can: deprecate the use of CAN-specific error return values 2021-12-09 12:37:40 -05:00
pm pm: device_runtime: Keep enable behavior consistent 2021-12-13 20:38:52 -05:00
portability portability: cmsis: use correct type for atomics 2021-11-15 09:59:01 -05:00
random random: Fix sys_csrand_get build condition 2021-10-07 14:02:40 -05:00
settings settings: add shell commands for reading settings 2021-11-22 08:32:56 -05:00
shell device: remove inclusion of pm/device.h 2021-11-29 11:08:38 +01:00
stats stats: fixed implicit integer sign extension in stats_get_off() 2021-10-28 15:15:56 -04:00
storage storage/flash_map: Add option to use MBEDTLS for img integrity check. 2021-11-24 21:52:08 -05:00
task_wdt task_wdt: fix overflow in current_ticks making wdt get stuck 2021-11-22 20:22:11 -05:00
testsuite testsuite: busy_sim: Use xoshiro128++ when enabled 2021-12-01 10:00:50 +01:00
timing
tracing usb: rework to use macro STRUCT_SECTION_FOREACH 2021-12-10 07:22:15 -06:00
usb usb: rework to use macro STRUCT_SECTION_FOREACH 2021-12-10 07:22:15 -06:00
CMakeLists.txt
Kconfig