From: Jesper Nilsson <jesper.nilsson@axis.com>
To: Peter Hurley <peter@hurleysoftware.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jslaby@suse.cz>,
One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>,
"linux-serial@vger.kernel.org" <linux-serial@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Mikael Starvik <starvik@axis.com>,
Jesper Nilsson <jespern@axis.com>
Subject: Re: [PATCH -next 6/9] cris: Remove obsolete ASYNC_SPLIT_TERMIOS behavior
Date: Thu, 6 Nov 2014 09:23:34 +0100 [thread overview]
Message-ID: <20141106082334.GL30087@axis.com> (raw)
In-Reply-To: <1415208392-16189-7-git-send-email-peter@hurleysoftware.com>
On Wed, Nov 05, 2014 at 06:26:29PM +0100, Peter Hurley wrote:
> ASYNC_SPLIT_TERMIOS behavior is a remnant of the long-dead /dev/cuaXX
> callout device. Split termios handling was removed tree-wide in v2.5.71 by:
>
> commit 99a21edebbfd8c29e39ee7fcc8a1ffa423657290
> Author: Alexander Viro <viro@www.linux.org.uk>
> Date: Wed Jun 11 07:41:28 2003 -0700
>
> [PATCH] tty_driver refcounting
>
> killed the last remnants of callout stuff - we don't need to mess with
> storing termios privately anymore.
>
> which pre-dated the re-introduction into the cris serial driver
> in v2.6.7 by:
>
> commit 311a5ffeda8ccb3f1f3840069f37234e043092d4
> Author: Andrew Morton <akpm@osdl.org>
> Date: Mon May 31 18:52:29 2004 -0700
>
> [PATCH] CRIS architecture update
>
> From: "Mikael Starvik" <mikael.starvik@axis.com>
>
> - Lots of fixes from 2.4.
>
> - Updated for 2.6.6.
>
> - Added IDE driver
>
> Cc: Mikael Starvik <starvik@axis.com>
Agreed.
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
> Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
> ---
> drivers/tty/serial/crisv10.c | 12 ------------
> drivers/tty/serial/crisv10.h | 1 -
> 2 files changed, 13 deletions(-)
>
> diff --git a/drivers/tty/serial/crisv10.c b/drivers/tty/serial/crisv10.c
> index 58e6f61..0c1825b 100644
> --- a/drivers/tty/serial/crisv10.c
> +++ b/drivers/tty/serial/crisv10.c
> @@ -3676,12 +3676,6 @@ rs_close(struct tty_struct *tty, struct file * filp)
> }
> info->port.flags |= ASYNC_CLOSING;
> /*
> - * Save the termios structure, since this port may have
> - * separate termios for callout and dialin.
> - */
> - if (info->port.flags & ASYNC_NORMAL_ACTIVE)
> - info->normal_termios = tty->termios;
> - /*
> * Now we wait for the transmit buffer to clear; and we notify
> * the line discipline to only process XON/XOFF characters.
> */
> @@ -4076,11 +4070,6 @@ rs_open(struct tty_struct *tty, struct file * filp)
> return retval;
> }
>
> - if ((info->port.count == 1) && (info->port.flags & ASYNC_SPLIT_TERMIOS)) {
> - tty->termios = info->normal_termios;
> - change_speed(info);
> - }
> -
> #ifdef SERIAL_DEBUG_OPEN
> printk("rs_open ttyS%d successful...\n", info->line);
> #endif
> @@ -4327,7 +4316,6 @@ static int __init rs_init(void)
> info->custom_divisor = 0;
> info->x_char = 0;
> info->event = 0;
> - info->normal_termios = driver->init_termios;
> info->xmit.buf = NULL;
> info->xmit.tail = info->xmit.head = 0;
> info->first_recv_buffer = info->last_recv_buffer = NULL;
> diff --git a/drivers/tty/serial/crisv10.h b/drivers/tty/serial/crisv10.h
> index 7599014..15a52ee 100644
> --- a/drivers/tty/serial/crisv10.h
> +++ b/drivers/tty/serial/crisv10.h
> @@ -98,7 +98,6 @@ struct e100_serial {
>
> struct work_struct work;
> struct async_icount icount; /* error-statistics etc.*/
> - struct ktermios normal_termios;
>
> unsigned long char_time_usec; /* The time for 1 char, in usecs */
> unsigned long flush_time_usec; /* How often we should flush */
> --
> 2.1.3
/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson@axis.com
next prev parent reply other threads:[~2014-11-06 8:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 17:26 [PATCH -next 0/9] various tty cleanups Peter Hurley
2014-11-05 17:26 ` [PATCH -next 1/9] tty: Replace open-coded test with tty_hung_up_p() Peter Hurley
2014-11-05 17:26 ` [PATCH -next 2/9] tty: Call methods in modern style Peter Hurley
2014-11-05 18:41 ` [PATCH] checkpatch: Add --strict test for function pointer calling style Joe Perches
2014-11-05 19:12 ` Peter Hurley
2014-11-05 19:30 ` Joe Perches
2014-11-05 17:26 ` [PATCH -next 3/9] tty: Remove defunct pcxe_open() declaration Peter Hurley
2014-11-05 17:26 ` [PATCH -next 4/9] tty: Remove defunct serial_console_init() declaration Peter Hurley
2014-11-05 17:26 ` [PATCH -next 5/9] serial: hp300: Remove obsolete comments Peter Hurley
2014-11-05 18:36 ` Geert Uytterhoeven
2014-11-05 17:26 ` [PATCH -next 6/9] cris: Remove obsolete ASYNC_SPLIT_TERMIOS behavior Peter Hurley
2014-11-06 8:23 ` Jesper Nilsson [this message]
2014-11-05 17:26 ` [PATCH -next 7/9] tty: Document defunct ASYNC_SPLIT_TERMIOS flag in uapi header Peter Hurley
2014-11-05 17:26 ` [PATCH -next 8/9] vt: Remove vt_get_kmsg_redirect() from " Peter Hurley
2014-11-05 17:26 ` [PATCH -next 9/9] serial: 8250_em: Remove out-of-memory message Peter Hurley
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=20141106082334.GL30087@axis.com \
--to=jesper.nilsson@axis.com \
--cc=gnomes@lxorguk.ukuu.org.uk \
--cc=gregkh@linuxfoundation.org \
--cc=jespern@axis.com \
--cc=jslaby@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=peter@hurleysoftware.com \
--cc=starvik@axis.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).