From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vc0-x231.google.com ([2607:f8b0:400c:c03::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wpjyl-000533-LV for barebox@lists.infradead.org; Wed, 28 May 2014 19:57:40 +0000 Received: by mail-vc0-f177.google.com with SMTP id hq11so7080987vcb.8 for ; Wed, 28 May 2014 12:57:18 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1400177676-2870-1-git-send-email-fabio.estevam@freescale.com> <20140515212125.GO5858@pengutronix.de> Date: Wed, 28 May 2014 16:57:18 -0300 Message-ID: From: Fabio Estevam List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] serial: imx: Fix buggy transmissions when baudrate mismatches To: Sascha Hauer Cc: Fabio Estevam , "barebox@lists.infradead.org" , Eric Nelson On Thu, May 15, 2014 at 7:05 PM, Fabio Estevam wrote: > Hi Sascha, > > On Thu, May 15, 2014 at 6:21 PM, Sascha Hauer wrote: > >>> --- a/drivers/serial/serial_imx.c >>> +++ b/drivers/serial/serial_imx.c >>> @@ -258,7 +258,8 @@ static int imx_serial_getc(struct console_device *cdev) >>> while (readl(priv->regs + priv->devtype->uts) & UTS_RXEMPTY); >>> >>> ch = readl(priv->regs + URXD0); >>> - >>> + if (ch >= 0x80) >>> + ch = '?'; >> >> This is not part of the fix, right? > > Correct, this is not part of the fix. > > This code is just to help reproducing the issue in console, without > the need of hooking an oscilloscope to the UART pins or inspecting > directly the UART TX registers. Any comments, Sascha? The same fix has also been applied to the kernel: https://git.kernel.org/cgit/linux/kernel/git/gregkh/tty.git/commit/?h=tty-next&id=b38cb7d2571197b56cefae8967f9db15c9361113 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox