From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [PATCH 1/4] serial: core: Consistent LF handling for poll_put_char Date: Wed, 28 May 2014 13:03:44 -0700 Message-ID: <20140528200344.GA2750@kroah.com> References: <1400079335-32125-1-git-send-email-daniel.thompson@linaro.org> <1400079335-32125-2-git-send-email-daniel.thompson@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:40154 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751234AbaE1UAJ (ORCPT ); Wed, 28 May 2014 16:00:09 -0400 Content-Disposition: inline In-Reply-To: <1400079335-32125-2-git-send-email-daniel.thompson@linaro.org> Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: Daniel Thompson Cc: linux-serial@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, John Stultz , Anton Vorontsov , Colin Cross , kernel-team@android.com, Jason Wessel , kgdb-bugreport@lists.sourceforge.net, Jiri Slaby , Kumar Gala , Pantelis Antoniou , Heikki Krogerus , Joe Schultz , Loic Poulain , Kyle McMartin , Stephen Warren , Ingo Molnar , Paul Gortmaker , Grant Likely , Rob Herring , Jingoo Han , Christophe Leroy On Wed, May 14, 2014 at 03:55:32PM +0100, Daniel Thompson wrote: > The behaviour of the UART poll_put_char infrastructure is inconsistent > with respect to linefeed conversions. This in turn leads to difficulty > using kdb on serial ports that are not also consoles > (e.g. console=ttyAMA0,115200 kgdboc=ttyAMA1,115200). > > The following drivers automatically convert '\n' to '\r\n' inside their > own poll functions but the remaining seventeen do not: > > serial8250, cpm, pch_uart, serial_pxa, serial_txx9, > > This can be made fully consistent but performing the conversion in > uart_poll_put_char(). A similar conversion is already made inside > uart_console_write() but it is optional for drivers to use this > function. Fortunately we can be confident the translation is safe > because the (very common) 8250 already does this translation. > > Signed-off-by: Daniel Thompson > Cc: Kumar Gala > Cc: Pantelis Antoniou > Cc: Heikki Krogerus > Cc: Joe Schultz > Cc: Loic Poulain > Cc: Kyle McMartin > Cc: Stephen Warren > Cc: Ingo Molnar > Cc: Paul Gortmaker > Cc: Grant Likely > Cc: Rob Herring > Cc: Jingoo Han > Cc: Christophe Leroy > --- > drivers/tty/serial/8250/8250_core.c | 5 ----- This patch doesn't apply to my tty-next branch anymore, as it seems that part of it is already there, right? Can you respin this whole series and resend? thanks, greg k-h