From 1ec93f83a059d8d57379760ae3f3d6e67d8f50a1 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 23 Jul 2004 23:15:50 +0000 Subject: Better fix for the ttymodem issue. --- sys/arch/mvme88k/dev/dart.c | 17 ++++++++--------- 1 file 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 -- cgit v1.2.3