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.
This commit is contained in:
Marcel Moolenaar 2004-07-26 03:54:40 +00:00
parent 43cb0b2b09
commit d882cf921f

View File

@ -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);