Skip to content

Commit d57faae

Browse files
committed
[nrf fromlist] drivers: serial: nrfx_uarte: Add runtime PM
Add runtime PM to the driver. When asynchronous or interrupt driven API is used, there are 3 independent paths for enabling the device: RX, TX and TX poll_out. TX poll_out requires special handling because number of poll_out calls does not need to much number of TXSTOPPED interrupts. To handle that special flag is added. For standard RX and TX is simpler. zephyrproject-rtos/zephyr#80201 Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent ad033b2 commit d57faae

File tree

2 files changed

+277
-216
lines changed

2 files changed

+277
-216
lines changed

drivers/serial/Kconfig.nrfx_uart_instance

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ config UART_$(nrfx_uart_num)_NRF_ASYNC_LOW_POWER
6868
depends on HAS_HW_NRF_UARTE$(nrfx_uart_num)
6969
depends on UART_ASYNC_API
7070
depends on UART_NRFX_UARTE_LEGACY_SHIM
71-
default y
71+
default y if !PM_DEVICE
7272
help
7373
When enabled, UARTE is enabled before each TX or RX usage and disabled
7474
when not used. Disabling UARTE while in idle allows to achieve lowest

0 commit comments

Comments
 (0)