mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
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 <[email protected]>
Cc: Doug Anderson <[email protected]>
Cc: Jiri Slaby <[email protected]>
Cc: Christophe Leroy <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>