Commit 2793658
drivers: serial: nrfx_uarte: Fix use of PM_DEVICE_ISR_SAFE
PM_DEVICE_ISR_SAFE shall not be used when non-asynchronous API is used
because RX is disabled in suspend action and that takes relatively
long time. In case of PM_DEVICE_ISR_SAFE it is done with interrupts
disabled. RX is not used at all if disable-rx property is set and in
that case PM_DEVICE_ISR_SAFE can be used.
Added macro which determines if ISR safe mode can be used.
Signed-off-by: Krzysztof Chruściński <[email protected]>
(cherry picked from commit e0f5241)1 parent 60de14b commit 2793658
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2506 | 2506 | | |
2507 | 2507 | | |
2508 | 2508 | | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
2509 | 2521 | | |
2510 | 2522 | | |
2511 | 2523 | | |
| |||
2578 | 2590 | | |
2579 | 2591 | | |
2580 | 2592 | | |
2581 | | - | |
2582 | | - | |
| 2593 | + | |
2583 | 2594 | | |
2584 | 2595 | | |
2585 | 2596 | | |
| |||
0 commit comments