Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 2012 20:56:49 +0000 (UTC)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232197 - head/sys/kern
Message-ID:  <201202262056.q1QKunNg082814@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: phk
Date: Sun Feb 26 20:56:49 2012
New Revision: 232197
URL: http://svn.freebsd.org/changeset/base/232197

Log:
  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:
  head/sys/kern/tty.c

Modified: head/sys/kern/tty.c
==============================================================================
--- head/sys/kern/tty.c	Sun Feb 26 20:30:21 2012	(r232196)
+++ head/sys/kern/tty.c	Sun Feb 26 20:56:49 2012	(r232197)
@@ -1481,6 +1481,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?201202262056.q1QKunNg082814>