Skip to content

Commit 53ec0e8

Browse files
rbudai98buha
authored andcommitted
drivers: platform: maxim_uart: clear async requests
During UART device removal, the rx and tx request must be cleared, in order properly clean up and allow future re-initializations. Signed-off-by: rbudai98 <robert.budai@analog.com>
1 parent 4e27a28 commit 53ec0e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/maxim/max32662/maxim_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ static int32_t max_uart_remove(struct no_os_uart_desc *desc)
445445
lf256fifo_remove(desc->rx_fifo);
446446
no_os_free(desc->rx_fifo);
447447
}
448-
448+
MXC_UART_AbortAsync(MXC_UART_GET_UART(desc->device_id));
449449
MXC_UART_Shutdown(MXC_UART_GET_UART(desc->device_id));
450450
no_os_free(desc->extra);
451451
no_os_free(desc);

0 commit comments

Comments
 (0)