Module Name: src
Committed By: mlelstv
Date: Sun Jun 2 12:45:00 UTC 2013
Modified Files:
src/sys/dev/usb: uftdi.c
Log Message:
The hardware only supports xon/xoff processing for both directions together,
enable it only if both directions are requested.
To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sys/dev/usb/uftdi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/uftdi.c
diff -u src/sys/dev/usb/uftdi.c:1.57 src/sys/dev/usb/uftdi.c:1.58
--- src/sys/dev/usb/uftdi.c:1.57 Sun Mar 24 23:00:48 2013
+++ src/sys/dev/usb/uftdi.c Sun Jun 2 12:45:00 2013
@@ -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 @@ uftdi_param(void *vsc, int portno, struc
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 {