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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to