From 5deccafa1870c4c4eb588ebcc6b4e95c4d7a59f6 Mon Sep 17 00:00:00 2001 From: Vladimir Zapolskiy Date: Sat, 30 Nov 2013 16:47:01 +0200 Subject: serial: lpc32xx: send CR before LF For LPC32XX high-speed UART it is required to send a carriage return symbol along with line feed. The problem was introduced in e503f90a commit. Signed-off-by: Vladimir Zapolskiy Cc: Marek Vasut Acked-by: Marek Vasut diff --git a/drivers/serial/lpc32xx_hsuart.c b/drivers/serial/lpc32xx_hsuart.c index 9c7c621..c8926a8 100644 --- a/drivers/serial/lpc32xx_hsuart.c +++ b/drivers/serial/lpc32xx_hsuart.c @@ -38,6 +38,9 @@ static int lpc32xx_serial_getc(void) static void lpc32xx_serial_putc(const char c) { + if (c == '\n') + serial_putc('\r'); + writel(c, &hsuart->tx); /* Wait for character to be sent */ -- cgit v0.10.2