Skip to content
Commit ab0bf486 authored by Jordan Yates's avatar Jordan Yates Committed by Carles Cufí
Browse files

pm: device: store power state in all scenarios



Update the internal power state tracking for `PM_DEVICE_ACTION_TURN_ON`
and `PM_DEVICE_ACTION_TURN_OFF` even when the transition function fails.
Just because the driver couldn't perform some action does not mean the
device is still powered/unpowered.

Signed-off-by: default avatarJordan Yates <jordan.yates@data61.csiro.au>
parent caca393a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment