Skip to content

Commit 179d435

Browse files
erwangofabiobaltieri
authored andcommitted
Revert "drivers: serial: stm32: Make it compatible with runtime PM ....
This reverts commit 1c2d326. which was limited to CONFIG_UART_ASYNC_API=y case and causing regression otherwise. Fixes #63885 Signed-off-by: Erwan Gouriou <[email protected]>
1 parent b9675b0 commit 179d435

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/serial/uart_stm32.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include <zephyr/drivers/clock_control.h>
2424
#include <zephyr/pm/policy.h>
2525
#include <zephyr/pm/device.h>
26-
#include <zephyr/pm/device_runtime.h>
2726

2827
#ifdef CONFIG_UART_ASYNC_API
2928
#include <zephyr/drivers/dma/dma_stm32.h>
@@ -672,11 +671,6 @@ static void uart_stm32_poll_out_visitor(const struct device *dev, void *out, pol
672671
*/
673672
uart_stm32_pm_policy_state_lock_get(dev);
674673

675-
/* Resume device if needed before enabling IT */
676-
if (pm_device_runtime_is_enabled(dev)) {
677-
(void)pm_device_runtime_get(dev);
678-
}
679-
680674
/* Enable TC interrupt so we can release suspend
681675
* constraint when done
682676
*/
@@ -1269,11 +1263,6 @@ static void uart_stm32_isr(const struct device *dev)
12691263
async_evt_tx_done(data);
12701264

12711265
#ifdef CONFIG_PM
1272-
/* Device can now be released */
1273-
if (pm_device_runtime_is_enabled(dev)) {
1274-
(void)pm_device_runtime_put(dev);
1275-
}
1276-
12771266
uart_stm32_pm_policy_state_lock_put(dev);
12781267
#endif
12791268
} else if (LL_USART_IsEnabledIT_RXNE(config->usart) &&

0 commit comments

Comments
 (0)