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
cf25f8a24a
commit
f05cb91c01
@ -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…
Reference in New Issue
Block a user