Commit c08390d
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 d4374ed commit c08390d
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2339 | 2339 | | |
2340 | 2340 | | |
2341 | 2341 | | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
2342 | 2354 | | |
2343 | 2355 | | |
2344 | 2356 | | |
| |||
2405 | 2417 | | |
2406 | 2418 | | |
2407 | 2419 | | |
2408 | | - | |
| 2420 | + | |
2409 | 2421 | | |
2410 | 2422 | | |
2411 | 2423 | | |
| |||
0 commit comments