From: Daniel Thompson Date: Thu, 29 May 2014 08:48:43 +0000 (+0100) Subject: serial: cpm_uart: No LF conversion in put_poll_char() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~35^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fe686ebafb43414c406c4c6252ad388a871bf1a;p=pandora-kernel.git serial: cpm_uart: No LF conversion in put_poll_char() In (c7d44a02a serial_core: Commonalize crlf when working w/ a non open console port) the core was modified to make the UART poll_put_char() automatically convert LF to CRLF. This driver's poll_put_char() adds a CR itself and this was not disabled by the above patch meaning currently it sends two CR characters. The code to issue a character is shared by the console write code (where driver must do LF to CRLF conversion, although it can make use of the uart_console_write() helper function) and the poll_put_char (where driver must not do the conversion). For that reason we add a flag rather than simply rip out the conversion code. Signed-off-by: Daniel Thompson Cc: Doug Anderson Cc: Jiri Slaby Cc: Christophe Leroy Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed