Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2012 12:07:11 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r239414 - stable/9/sys/kern
Message-ID:  <201208201207.q7KC7Bnp031526@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Aug 20 12:07:10 2012
New Revision: 239414
URL: http://svn.freebsd.org/changeset/base/239414

Log:
  MFC r232197 (on behalf of phk):
  Also call the low-level driver if ->c_iflag & (IXON|IXOFF|IXANY) changes.
  
  Uftdi(4) examines (c_iflag & (IXON|IXOFF)) to control hw XON-XOFF support.
  This is obviously no good, if changes to those bits are not communicated
  down the stack.

Modified:
  stable/9/sys/kern/tty.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/tty.c
==============================================================================
--- stable/9/sys/kern/tty.c	Mon Aug 20 11:51:49 2012	(r239413)
+++ stable/9/sys/kern/tty.c	Mon Aug 20 12:07:10 2012	(r239414)
@@ -1498,6 +1498,8 @@ tty_generic_ioctl(struct tty *tp, u_long
 		 */
 		if ((t->c_cflag & CIGNORE) == 0 &&
 		    (tp->t_termios.c_cflag != t->c_cflag ||
+		    ((tp->t_termios.c_iflag ^ t->c_iflag) &
+		    (IXON|IXOFF|IXANY)) ||
 		    tp->t_termios.c_ispeed != t->c_ispeed ||
 		    tp->t_termios.c_ospeed != t->c_ospeed)) {
 			error = ttydevsw_param(tp, t);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208201207.q7KC7Bnp031526>