svn commit: r239414 - stable/9/sys/kern

Konstantin Belousov kib at FreeBSD.org
Mon Aug 20 12:07:11 UTC 2012


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);


More information about the svn-src-stable mailing list