Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752500AbdF3MFg (ORCPT ); Fri, 30 Jun 2017 08:05:36 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:37567 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751945AbdF3MFF (ORCPT ); Fri, 30 Jun 2017 08:05:05 -0400 From: Romain Perier To: Greg Kroah-Hartman Cc: linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nandor Han , Romain Perier Subject: [PATCH 2/7] serial: imx: move log from error to debug type Date: Fri, 30 Jun 2017 14:04:41 +0200 Message-Id: <20170630120446.13994-3-romain.perier@collabora.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170630120446.13994-1-romain.perier@collabora.com> References: <20170630120446.13994-1-romain.perier@collabora.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1087 Lines: 33 From: Nandor Han During DMA startup we have a data race condition since UART port can receive data that can generate different type of errors. This is not necessarily an error since DMA didn't yet started. The situation is minimized but still present even if we try to clear up the error before starting the DMA. Therefore changing the log to debug type we avoid having "false" error messages. Signed-off-by: Nandor Han Signed-off-by: Romain Perier --- drivers/tty/serial/imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 1d35293..188063d 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -994,7 +994,7 @@ static void dma_rx_callback(void *data) status = dmaengine_tx_status(chan, (dma_cookie_t)0, &state); if (status == DMA_ERROR) { - dev_err(sport->port.dev, "DMA transaction error.\n"); + dev_dbg(sport->port.dev, "DMA transaction error.\n"); clear_rx_errors(sport); return; } -- 1.8.3.1