diff options
author | 2001-07-23 14:28:46 +0000 | |
---|---|---|
committer | 2001-07-23 14:28:46 +0000 | |
commit | 0b7391ef4cbb0efdb96afaade88ee4ea04b5472d (patch) | |
tree | e9e0584e862bf51ce3f1108ca34acef4bf82df25 | |
parent | improve IFA_ROUTE handling. do not lose connected route on primary (diff) | |
download | wireguard-openbsd-0b7391ef4cbb0efdb96afaade88ee4ea04b5472d.tar.xz wireguard-openbsd-0b7391ef4cbb0efdb96afaade88ee4ea04b5472d.zip |
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).
-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)) { |