Commit a582e25
committed
drivers: serial: uart_nrfx_uarte: Avoid incorrect UARTE disable when using runtime PM
When CONFIG_PM_DEVICE_RUNTIME is enabled, the code can incorrectly call
nrf_uarte_disable() after TXSTOPPED, even though runtime power management is
supposed to handle disabling the UARTE.
This happens if the UARTE_FLAG_POLL_OUT flag is not set — in that case,
the call to pm_device_runtime_put() is skipped, and nrf_uarte_disable() is
called directly instead, which isn't correct when runtime PM is active.
This fix prevents nrf_uarte_disable() from being called in this scenario,
so that the UARTE is only disabled by the PM system when appropriate.
Signed-off-by: Vivek Sahi <[email protected]>1 parent ca954a6 commit a582e25
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
| |||
0 commit comments