pm: device: Account state locked in action_run
Similar what is done in pm_device_state_set, checking if the power state for a given device in pm_device_action_run is locked. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
0f3169648b
commit
94647d8e67
2 changed files with 5 additions and 0 deletions
|
@ -330,6 +330,7 @@ int pm_device_state_get(const struct device *dev,
|
|||
* @retval -EALREADY If device is already at the requested state.
|
||||
* @retval -EBUSY If device is changing its state.
|
||||
* @retval -ENOSYS If device does not support PM.
|
||||
* @retval -EPERM If device has power state locked.
|
||||
* @retval Errno Other negative errno on failure.
|
||||
*/
|
||||
int pm_device_action_run(const struct device *dev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue