diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-26 03:54:40 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-26 03:54:40 +0000 |
commit | ff2ddd225f0d60910eebfb4e0b8054dbca51ae94 (patch) | |
tree | 1f6fc1d81dab005b169554526546db7efa596488 | |
parent | c5b9f7aaed12ceb65f753ec35e3d503e5eaa4219 (diff) | |
download | FreeBSD-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.c | 2 |
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); |