Skip to content

Commit 1221f55

Browse files
committed
drivers: uart/dma: esp32: revert to PRE_KERNEL_1
printf is failing in hello_world sample due to current uart driver init level. This reverts back to PRE_KERNEL_1. As uart depends on GDMA, set it also to same level. Signed-off-by: Sylvio Alves <[email protected]>
1 parent bf104d4 commit 1221f55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/dma/dma_esp32_gdma.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,6 @@ static void *irq_handlers[] = {
703703
}; \
704704
\
705705
DEVICE_DT_INST_DEFINE(idx, &dma_esp32_init, NULL, &dma_data_##idx, &dma_config_##idx, \
706-
PRE_KERNEL_2, CONFIG_DMA_INIT_PRIORITY, &dma_esp32_api);
706+
PRE_KERNEL_1, CONFIG_DMA_INIT_PRIORITY, &dma_esp32_api);
707707

708708
DT_INST_FOREACH_STATUS_OKAY(DMA_ESP32_INIT)

drivers/serial/uart_esp32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ static DEVICE_API(uart, uart_esp32_api) = {
10571057
ESP_UART_UHCI_INIT(idx)}; \
10581058
\
10591059
DEVICE_DT_INST_DEFINE(idx, uart_esp32_init, NULL, &uart_esp32_data_##idx, \
1060-
&uart_esp32_cfg_port_##idx, PRE_KERNEL_2, \
1060+
&uart_esp32_cfg_port_##idx, PRE_KERNEL_1, \
10611061
CONFIG_SERIAL_INIT_PRIORITY, &uart_esp32_api);
10621062

10631063
DT_INST_FOREACH_STATUS_OKAY(ESP32_UART_INIT);

0 commit comments

Comments
 (0)