Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752579AbdGCGuO (ORCPT ); Mon, 3 Jul 2017 02:50:14 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:42259 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752361AbdGCGuN (ORCPT ); Mon, 3 Jul 2017 02:50:13 -0400 Date: Mon, 3 Jul 2017 08:50:05 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Romain Perier Cc: Greg Kroah-Hartman , Nandor Han , linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/7] serial: imx: move log from error to debug type Message-ID: <20170703065005.yekk7asb65fhgzhz@pengutronix.de> References: <20170630120446.13994-1-romain.perier@collabora.com> <20170630120446.13994-3-romain.perier@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170630120446.13994-3-romain.perier@collabora.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:5054:ff:fe2a:3aa X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 830 Lines: 24 On Fri, Jun 30, 2017 at 02:04:41PM +0200, Romain Perier wrote: > 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. This doesn't look right. You say the message "DMA transaction error." is wrong sometimes and so hide it a bit by using dev_dbg instead of dev_err. I don't like that. Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |