From 1467eaef968f0f24b42289cb2dbca4ddb43ab488 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Mon, 23 Jul 2001 14:28:47 +0000 Subject: reorder operations a bit for st16550{v2}, xr16850, ti16750: wake them up and then initialize them This fixes a comatose st16650 problem on addcom (detected as st16550). --- sys/arch/i386/isa/pccom.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sys/arch/i386') diff --git a/sys/arch/i386/isa/pccom.c b/sys/arch/i386/isa/pccom.c index e4f048e8fc7..ed92afcbfa4 100644 --- a/sys/arch/i386/isa/pccom.c +++ b/sys/arch/i386/isa/pccom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pccom.c,v 1.38 2001/07/04 23:14:51 espie Exp $ */ +/* $OpenBSD: pccom.c,v 1.39 2001/07/23 14:28:46 jason Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -856,12 +856,6 @@ comopen(dev, flag, mode, p) s = spltty(); - sc->sc_initialize = 1; - comparam(tp, &tp->t_termios); - ttsetwater(tp); - - sc->sc_rxput = sc->sc_rxget = sc->sc_tbc = 0; - iot = sc->sc_iot; ioh = sc->sc_ioh; @@ -883,6 +877,12 @@ comopen(dev, flag, mode, p) break; } + sc->sc_initialize = 1; + comparam(tp, &tp->t_termios); + ttsetwater(tp); + + sc->sc_rxput = sc->sc_rxget = sc->sc_tbc = 0; + #ifdef COM_HAYESP /* Setup the ESP board */ if (ISSET(sc->sc_hwflags, COM_HW_HAYESP)) { -- cgit v1.2.3