zephyr/samples/subsys/pm/device_pm
Flavio Ceolin 178cfd094c samples: pm: Fix device pm sample
"child resuming" text is printed when dummy_device_pm_ctrl is
called. The driver is using the async api, this means that this call
will happen only when the worqueue runs what will happen only when
this thread blocks waiting on the conditional variable.

The last thing is, the dummy driver was putting the parent driver
asynchronously consequently the "parent suspending" message would just
print after "Device PM sample app complete". Just use the sync API to
get these messages printed in the expected order.

Fixes #35336

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2021-05-17 15:40:58 -04:00
..
src samples: pm: Fix device pm sample 2021-05-17 15:40:58 -04:00
CMakeLists.txt
prj.conf
sample.yaml samples: pm: Fix device pm sample 2021-05-17 15:40:58 -04:00