Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Handle IXON,IXOFF individually.
details: https://anonhg.NetBSD.org/src/rev/b921e92b1da2
branches: trunk
changeset: 983890:b921e92b1da2
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jun 13 09:29:38 2021 +0000
description:
Handle IXON,IXOFF individually.
diffstat:
sys/dev/usb/ubsa_common.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 502e5f2e78c7 -r b921e92b1da2 sys/dev/usb/ubsa_common.c
--- a/sys/dev/usb/ubsa_common.c Sun Jun 13 09:28:23 2021 +0000
+++ b/sys/dev/usb/ubsa_common.c Sun Jun 13 09:29:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ubsa_common.c,v 1.14 2020/03/14 02:35:33 christos Exp $ */
+/* $NetBSD: ubsa_common.c,v 1.15 2021/06/13 09:29:38 mlelstv Exp $ */
/*-
* Copyright (c) 2002, Alexander Kabaev <kan.FreeBSD.org>.
* All rights reserved.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ubsa_common.c,v 1.14 2020/03/14 02:35:33 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ubsa_common.c,v 1.15 2021/06/13 09:29:38 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -316,8 +316,10 @@
value = 0;
if (cflag & CRTSCTS)
value |= UBSA_FLOW_OCTS | UBSA_FLOW_IRTS;
- if (iflag & (IXON|IXOFF))
- value |= UBSA_FLOW_OXON | UBSA_FLOW_IXON;
+ if (iflag & IXOFF)
+ value |= UBSA_FLOW_OXON;
+ if (iflag & IXON)
+ value |= UBSA_FLOW_IXON;
ubsa_request(sc, portno, UBSA_SET_FLOW_CTRL, value);
}
Home |
Main Index |
Thread Index |
Old Index