Assert RTS on open. Fixes PR kern/33929.

This commit is contained in:
gson 2006-07-12 07:36:25 +00:00
parent cc85b518f1
commit c14814103c

View File

@ -1,4 +1,4 @@
/* $NetBSD: ucom.c,v 1.63 2006/05/14 21:47:00 elad Exp $ */
/* $NetBSD: ucom.c,v 1.64 2006/07/12 07:36:25 gson Exp $ */
/*
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.63 2006/05/14 21:47:00 elad Exp $");
__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.64 2006/07/12 07:36:25 gson Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -392,9 +392,10 @@ ucomopen(dev_t dev, int flag, int mode, struct lwp *l)
* present, because otherwise we'd have to use TIOCSDTR
* immediately after setting CLOCAL, which applications do not
* expect. We always assert DTR while the device is open
* unless explicitly requested to deassert it.
* unless explicitly requested to deassert it. Ditto RTS.
*/
ucom_dtr(sc, 1);
ucom_rts(sc, 1);
/* XXX CLR(sc->sc_rx_flags, RX_ANY_BLOCK);*/
ucom_hwiflow(sc);