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:
parent
43cb0b2b09
commit
d882cf921f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user