summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-07-23 23:15:50 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-07-23 23:15:50 +0000
commit1ec93f83a059d8d57379760ae3f3d6e67d8f50a1 (patch)
treed52d6cbce20ae6548f27415c8c92f85b10656195
parentb21055f17894e58b8afedf10d3af2f612ddd5504 (diff)
Better fix for the ttymodem issue.
-rw-r--r--sys/arch/mvme88k/dev/dart.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/arch/mvme88k/dev/dart.c b/sys/arch/mvme88k/dev/dart.c
index 649e70e6266..1a72ec183c9 100644
--- a/sys/arch/mvme88k/dev/dart.c
+++ b/sys/arch/mvme88k/dev/dart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dart.c,v 1.35 2004/07/23 21:01:09 miod Exp $ */
+/* $OpenBSD: dart.c,v 1.36 2004/07/23 23:15:49 miod Exp $ */
/*
* Mach Operating System
@@ -804,19 +804,18 @@ dartmodemtrans(sc, ip, ipcr)
port = B_PORT;
dcdstate = !(ip & IPDCDB);
} else {
- printf("dartmodemtrans: unknown transition:\n");
- printf("dartmodemtrans: ip=0x%x ipcr=0x%x\n",
+ printf("dartmodemtrans: unknown transition ip=0x%x ipcr=0x%x\n",
ip, ipcr);
- panic("dartmodemtrans");
+ return;
}
+
dart = &sc->sc_dart[port];
tp = dart->tty;
-
- dprintf(("dartmodemtrans: tp=0x%x new DCD state: %s\n",
- tp, dcdstate ? "UP" : "DOWN"));
-
- if (tp != NULL && (tp->t_state & TS_ISOPEN))
+ if (tp != NULL) {
+ dprintf(("dartmodemtrans: tp=0x%x new DCD state: %s\n",
+ tp, dcdstate ? "UP" : "DOWN"));
ttymodem(tp, dcdstate);
+ }
}
int