Skip to content

Commit 88ec25b

Browse files
ananglcarlescufi
authored andcommitted
drivers: uart_nrfx_uarte: Fix USE_LOW_POWER macro for PINCTRL case
This macro incorrectly uses DT_NODE_HAS_PROP() to check the truth value of the "disable-rx" boolean property. In consequence, it always assumes that RX is disabled and the low power mode needs to be used. Fix this by replacing the check with DT_PROP(). Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 30c45b0 commit 88ec25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_nrfx_uarte.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2027,7 +2027,7 @@ static int uarte_nrfx_pm_action(const struct device *dev,
20272027
* kconfig option is enabled.
20282028
*/
20292029
#define USE_LOW_POWER(idx) \
2030-
((!UARTE_HAS_PROP(idx, disable_rx) && \
2030+
((!UARTE_PROP(idx, disable_rx) && \
20312031
COND_CODE_1(CONFIG_UART_##idx##_ASYNC, \
20322032
(!IS_ENABLED(CONFIG_UART_##idx##_NRF_ASYNC_LOW_POWER)), \
20332033
(1))) ? 0 : UARTE_CFG_FLAG_LOW_POWER)

0 commit comments

Comments
 (0)