From 99ff7238b96bed07df689105a0d55c62a10ae1e8 Mon Sep 17 00:00:00 2001 From: Chris Kuethe Date: Mon, 28 Jun 2010 04:36:32 +0000 Subject: Use a more moderate fifo trigger level (4) for moderately quick (sub-38400) port speeds. Inspired by netbsd. ok fgsch krw deraadt miod --- sys/dev/ic/com.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index 1f5f6f3156a..83bce029147 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com.c,v 1.139 2010/06/26 23:24:44 guenther Exp $ */ +/* $OpenBSD: com.c,v 1.140 2010/06/28 04:36:31 ckuethe Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -356,6 +356,8 @@ comopen(dev_t dev, int flag, int mode, struct proc *p) if (tp->t_ispeed <= 1200) fifo |= FIFO_TRIGGER_1; + else if (tp->t_ispeed <= 38400) + fifo |= FIFO_TRIGGER_4; else fifo |= FIFO_TRIGGER_8; if (sc->sc_uarttype == COM_UART_TI16750) { -- cgit v1.2.3