summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-07-26 03:54:40 +0000
committermarcel <marcel@FreeBSD.org>2004-07-26 03:54:40 +0000
commitff2ddd225f0d60910eebfb4e0b8054dbca51ae94 (patch)
tree1f6fc1d81dab005b169554526546db7efa596488
parentc5b9f7aaed12ceb65f753ec35e3d503e5eaa4219 (diff)
downloadFreeBSD-src-ff2ddd225f0d60910eebfb4e0b8054dbca51ae94.zip
FreeBSD-src-ff2ddd225f0d60910eebfb4e0b8054dbca51ae94.tar.gz
When sizing the FIFO, don't count all the way up to 1030 if any FIFO
size larger than 128 is considered an incompatible size. Stop counting when we reach 130 in the loop.
-rw-r--r--sys/dev/uart/uart_dev_ns8250.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/uart/uart_dev_ns8250.c b/sys/dev/uart/uart_dev_ns8250.c
index af166ad..11670c2 100644
--- a/sys/dev/uart/uart_dev_ns8250.c
+++ b/sys/dev/uart/uart_dev_ns8250.c
@@ -666,7 +666,7 @@ ns8250_bus_probe(struct uart_softc *sc)
count = 0;
goto describe;
}
- } while ((lsr & LSR_OE) == 0 && count < 1030);
+ } while ((lsr & LSR_OE) == 0 && count < 130);
count--;
uart_setreg(bas, REG_MCR, mcr);
OpenPOWER on IntegriCloud