Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Clear dtr on transition from !0 to 0, and set it ...
details: https://anonhg.NetBSD.org/src/rev/04017b31da4d
branches: trunk
changeset: 328574:04017b31da4d
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 08 00:09:15 2014 +0000
description:
Clear dtr on transition from !0 to 0, and set it on the opposite.
This leaves dtr alone in the normal case.
diffstat:
sys/dev/ic/com.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r 2d8317b301bd -r 04017b31da4d sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Mon Apr 07 21:38:28 2014 +0000
+++ b/sys/dev/ic/com.c Tue Apr 08 00:09:15 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.324 2014/04/06 23:29:58 christos Exp $ */
+/* $NetBSD: com.c,v 1.325 2014/04/08 00:09:15 christos Exp $ */
/*-
* Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.324 2014/04/06 23:29:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: com.c,v 1.325 2014/04/08 00:09:15 christos Exp $");
#include "opt_com.h"
#include "opt_ddb.h"
@@ -1424,12 +1424,10 @@
}
sc->sc_msr_mask = sc->sc_msr_cts | sc->sc_msr_dcd;
- if (ospeed == 0)
+ if (t->c_ospeed == 0 && tp->t_ospeed != 0)
CLR(sc->sc_mcr, sc->sc_mcr_dtr);
-#if 0
- else
+ else if (t->c_ospeed != 0 && tp->t_ospeed == 0)
SET(sc->sc_mcr, sc->sc_mcr_dtr);
-#endif
sc->sc_dlbl = ospeed;
sc->sc_dlbh = ospeed >> 8;
Home |
Main Index |
Thread Index |
Old Index