pm: fix incorrect usages of PM_DEVICE_STATE_OFF
According to the documentation the OFF state has to be used when the devices is fully turned off, ie, power removed. Most drivers were using a sort of fall-through for all non-active states, leading to behaviors not following the specifications. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
495672ab62
commit
6d273f49bd
10 changed files with 3 additions and 19 deletions
|
@ -3505,7 +3505,7 @@ static void shutdown_uart(void)
|
|||
HL7800_IO_DBG_LOG("Power OFF the UART");
|
||||
uart_irq_rx_disable(ictx.mdm_ctx.uart_dev);
|
||||
rc = pm_device_state_set(ictx.mdm_ctx.uart_dev,
|
||||
PM_DEVICE_STATE_OFF);
|
||||
PM_DEVICE_STATE_SUSPENDED);
|
||||
if (rc) {
|
||||
LOG_ERR("Error disabling UART peripheral (%d)", rc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue