diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-07-23 14:28:47 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-07-23 14:28:47 +0000 |
commit | 1467eaef968f0f24b42289cb2dbca4ddb43ab488 (patch) | |
tree | 833602ff6e5fb9fdabc2f57273fe01733e403365 /sys | |
parent | d4ddf0449cde9c08ec0e21a98807e1b122af7bbf (diff) |
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).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/isa/pccom.c | 14 |
1 files changed, 7 insertions, 7 deletions
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)) { |