The core already handles the kernel console case and disables DMA for any serial device used for above mentioned purposes. Thus, remove duplicating code to disable DMA for kernel console. Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> --- drivers/tty/serial/8250/8250_mtk.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c index 4d067f515f74..3edd5791ada8 100644 --- a/drivers/tty/serial/8250/8250_mtk.c +++ b/drivers/tty/serial/8250/8250_mtk.c @@ -183,10 +183,6 @@ static int mtk8250_startup(struct uart_port *port) struct uart_8250_port *up = up_to_u8250p(port); struct mtk8250_data *data = port->private_data; - /* disable DMA for console */ - if (uart_console(port)) - up->dma = NULL; - if (up->dma) { data->rx_status = DMA_RX_START; uart_circ_clear(&port->state->xmit); -- 2.25.0