From c21e0da2f86dbd8a4ba923b240ad87f6276ed498 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Wed, 10 Sep 2003 05:01:08 +0000 Subject: [PATCH] If we failed to size the Rx FIFO, assume the worst. This however is not a size of 1. Since we already know there is a FIFO, we can safely assume that it is at least 16 bytes. Note that all this is mostly academic anyway. We don't use the size of the Rx FIFO currently. If we add support for hardware flow control, we only care about Rx FIFO sizes larger than 16. --- sys/dev/uart/uart_dev_ns8250.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/uart/uart_dev_ns8250.c b/sys/dev/uart/uart_dev_ns8250.c index d09371da8112..ea5d5d04f8f8 100644 --- a/sys/dev/uart/uart_dev_ns8250.c +++ b/sys/dev/uart/uart_dev_ns8250.c @@ -638,7 +638,7 @@ ns8250_bus_probe(struct uart_softc *sc) sc->sc_rxfifosz = 128; device_set_desc(sc->sc_dev, "16950 or compatible"); } else { - sc->sc_rxfifosz = 1; + sc->sc_rxfifosz = 16; device_set_desc(sc->sc_dev, "Non-standard ns8250 class UART with FIFOs"); }