Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb The hardware only supports xon/xoff processing f...



details:   https://anonhg.NetBSD.org/src/rev/e0db38274b00
branches:  trunk
changeset: 787105:e0db38274b00
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Jun 02 12:45:00 2013 +0000

description:
The hardware only supports xon/xoff processing for both directions together,
enable it only if both directions are requested.

diffstat:

 sys/dev/usb/uftdi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 73bbdaa75258 -r e0db38274b00 sys/dev/usb/uftdi.c
--- a/sys/dev/usb/uftdi.c       Sun Jun 02 11:02:40 2013 +0000
+++ b/sys/dev/usb/uftdi.c       Sun Jun 02 12:45:00 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uftdi.c,v 1.57 2013/03/24 23:00:48 cheusov Exp $       */
+/*     $NetBSD: uftdi.c,v 1.58 2013/06/02 12:45:00 mlelstv Exp $       */
 
 /*
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uftdi.c,v 1.57 2013/03/24 23:00:48 cheusov Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uftdi.c,v 1.58 2013/06/02 12:45:00 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -631,7 +631,7 @@
        if (ISSET(t->c_cflag, CRTSCTS)) {
                flow = FTDI_SIO_RTS_CTS_HS;
                USETW(req.wValue, 0);
-       } else if (ISSET(t->c_iflag, IXON|IXOFF)) {
+       } else if (ISSET(t->c_iflag, IXON) && ISSET(t->c_iflag, IXOFF)) {
                flow = FTDI_SIO_XON_XOFF_HS;
                USETW2(req.wValue, t->c_cc[VSTOP], t->c_cc[VSTART]);
        } else {



Home | Main Index | Thread Index | Old Index