Skip to content

Commit 186bb57

Browse files
maass-hamburghenrikbrixandersen
authored andcommitted
drivers: serial: litex: make sure to just disable irq
just disable irq and not plush pending events, so we don't loose them, when they are enabled again. Signed-off-by: Fin Maaß <[email protected]>
1 parent eda76ad commit 186bb57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/uart_litex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static int uart_litex_init(const struct device *dev)
309309
{
310310
const struct uart_litex_device_config *config = dev->config;
311311

312-
litex_write8(UART_EV_TX | UART_EV_RX, config->ev_pending_addr);
312+
litex_write8(0, config->ev_enable_addr);
313313

314314
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
315315
config->config_func(dev);

0 commit comments

Comments
 (0)