diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2005-01-28 22:38:40 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2005-01-28 22:38:40 +0000 |
commit | bc93a8e52be120150916e37da9f55672161ec9b7 (patch) | |
tree | 96e64015439b4ced7b405051ce20f3bd70588832 /sys/dev | |
parent | 8fcf8855b06ce6f600cd9bd386a6867b4e561e62 (diff) |
make RTS follow DTS when CRTSCTS is off, like com(4) and pccom(4); tested
hshoexer@ henning@; ok henning@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/ucom.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/usb/ucom.c b/sys/dev/usb/ucom.c index e975b020763..7da75d0aeb3 100644 --- a/sys/dev/usb/ucom.c +++ b/sys/dev/usb/ucom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ucom.c,v 1.24 2005/01/28 22:36:46 djm Exp $ */ +/* $OpenBSD: ucom.c,v 1.25 2005/01/28 22:38:39 djm Exp $ */ /* $NetBSD: ucom.c,v 1.49 2003/01/01 00:10:25 thorpej Exp $ */ /* @@ -777,9 +777,13 @@ ucom_dtr(struct ucom_softc *sc, int onoff) { DPRINTF(("ucom_dtr: onoff=%d\n", onoff)); - if (sc->sc_methods->ucom_set != NULL) + if (sc->sc_methods->ucom_set != NULL) { sc->sc_methods->ucom_set(sc->sc_parent, sc->sc_portno, UCOM_SET_DTR, onoff); + /* When not using CRTSCTS, RTS follows DTR. */ + if (!(sc->sc_swflags & TIOCFLAG_CRTSCTS)) + ucom_rts(sc, onoff); + } } Static void |