linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Daniel Thompson <daniel.thompson@linaro.org>
Cc: linux-serial@vger.kernel.org, patches@linaro.org,
	linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org,
	John Stultz <john.stultz@linaro.org>,
	Anton Vorontsov <anton.vorontsov@linaro.org>,
	Colin Cross <ccross@android.com>,
	kernel-team@android.com,
	Jason Wessel <jason.wessel@windriver.com>,
	kgdb-bugreport@lists.sourceforge.net, Jiri Slaby <jslaby@suse.cz>,
	Kumar Gala <galak@kernel.crashing.org>,
	Pantelis Antoniou <panto@intracom.gr>,
	Heikki Krogerus <heikki.krogerus@linux.intel.com>,
	Joe Schultz <jschultz@xes-inc.com>,
	Loic Poulain <loic.poulain@intel.com>,
	Kyle McMartin <kyle@infradead.org>,
	Stephen Warren <swarren@nvidia.com>, Ingo Molnar <mingo@elte.hu>,
	Paul Gortmaker <paul.gortmaker@windriver.com>,
	Grant Likely <grant.likely@linaro.org>,
	Rob Herring <rob.herring@calxeda.com>,
	Jingoo Han <jg1.han@samsung.com>,
	Christophe Leroy <christophe.leroy@c-s.fr>
Subject: Re: [PATCH 1/4] serial: core: Consistent LF handling for poll_put_char
Date: Wed, 28 May 2014 13:03:44 -0700	[thread overview]
Message-ID: <20140528200344.GA2750@kroah.com> (raw)
In-Reply-To: <1400079335-32125-2-git-send-email-daniel.thompson@linaro.org>

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 <daniel.thompson@linaro.org>
> Cc: Kumar Gala <galak@kernel.crashing.org>
> Cc: Pantelis Antoniou <panto@intracom.gr>
> Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> Cc: Joe Schultz <jschultz@xes-inc.com>
> Cc: Loic Poulain <loic.poulain@intel.com>
> Cc: Kyle McMartin <kyle@infradead.org>
> Cc: Stephen Warren <swarren@nvidia.com>
> Cc: Ingo Molnar <mingo@elte.hu>
> Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
> Cc: Grant Likely <grant.likely@linaro.org>
> Cc: Rob Herring <rob.herring@calxeda.com>
> Cc: Jingoo Han <jg1.han@samsung.com>
> Cc: Christophe Leroy <christophe.leroy@c-s.fr>
> ---
>  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

  parent reply	other threads:[~2014-05-28 20:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14 14:55 [PATCH 0/4] serial: kgdb_nmi: Allow ttyNMIX to act as primary console Daniel Thompson
2014-05-14 14:55 ` [PATCH 1/4] serial: core: Consistent LF handling for poll_put_char Daniel Thompson
2014-05-14 15:08   ` Jason Wessel
2014-05-15 11:06     ` Daniel Thompson
2014-05-28 20:03   ` Greg Kroah-Hartman [this message]
2014-05-29  8:48     ` [PATCH tty-next v2 0/4] serial: kgdb_nmi: Allow ttyNMIX to act as primary console Daniel Thompson
2014-05-29  8:48       ` [PATCH tty-next v2 1/4] serial: cpm_uart: No LF conversion in put_poll_char() Daniel Thompson
2014-05-29  8:48       ` [PATCH tty-next v2 2/4] serial: kgdb_nmi: Use container_of() to locate private data Daniel Thompson
2014-05-29  8:48       ` [PATCH tty-next v2 3/4] serial: kgdb_nmi: Switch from tasklets to real timers Daniel Thompson
2014-05-29  8:48       ` [PATCH tty-next v2 4/4] serial: kgdb_nmi: Improve console integration with KDB I/O Daniel Thompson
2014-05-14 14:55 ` [PATCH 2/4] serial: kgdb_nmi: Use container_of() to locate private data Daniel Thompson
2014-05-14 14:55 ` [PATCH 3/4] serial: kgdb_nmi: Switch from tasklets to real timers Daniel Thompson
2014-05-14 14:55 ` [PATCH 4/4] serial: kgdb_nmi: Improve console integration with KDB I/O Daniel Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140528200344.GA2750@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=anton.vorontsov@linaro.org \
    --cc=ccross@android.com \
    --cc=christophe.leroy@c-s.fr \
    --cc=daniel.thompson@linaro.org \
    --cc=galak@kernel.crashing.org \
    --cc=grant.likely@linaro.org \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=jason.wessel@windriver.com \
    --cc=jg1.han@samsung.com \
    --cc=john.stultz@linaro.org \
    --cc=jschultz@xes-inc.com \
    --cc=jslaby@suse.cz \
    --cc=kernel-team@android.com \
    --cc=kgdb-bugreport@lists.sourceforge.net \
    --cc=kyle@infradead.org \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=loic.poulain@intel.com \
    --cc=mingo@elte.hu \
    --cc=panto@intracom.gr \
    --cc=patches@linaro.org \
    --cc=paul.gortmaker@windriver.com \
    --cc=rob.herring@calxeda.com \
    --cc=swarren@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).