serial: imx: remove log spamming error message
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 17 May 2019 10:01:38 +0000 (12:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2019 10:18:17 +0000 (12:18 +0200)
Each time the DMA engine signals a transaction error the driver prints
a message at error level. Getting transaction errors is pretty much
expected on baudrate mismatches and the correspoding error counters
are increased in this case properly. Remove the error message which
is possibly repeated at a very high rate which can lock up the whole
system.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c

index dff75dc947311cd588437363db8578cf8f180351..8b752e8950537d4ec706c0dace302e8b00230f53 100644 (file)
@@ -1165,7 +1165,6 @@ static void imx_uart_clear_rx_errors(struct imx_port *sport)
                        sport->port.icount.buf_overrun++;
                tty_flip_buffer_push(port);
        } else {
-               dev_err(sport->port.dev, "DMA transaction error.\n");
                if (usr1 & USR1_FRAMERR) {
                        sport->port.icount.frame++;
                        imx_uart_writel(sport, USR1_FRAMERR, USR1);