Use the correct speed in the delay for the transmission of a character
in the loopback test in the probe. The delay was too short for consoles at speeds lower than about 3200 bps. This shouldn't have caused many problems, since such low speeds are rare and the probe is forced to succeed for consoles.
This commit is contained in:
parent
d4ad9d71e7
commit
1a3e8e9591
@ -694,7 +694,10 @@ sioprobe(dev, xrid, rclk, noprobe)
|
||||
* it's unlikely to do more than allow the null byte out.
|
||||
*/
|
||||
sio_setreg(com, com_data, 0);
|
||||
DELAY((1 + 2) * 1000000 / (SIO_TEST_SPEED / 10));
|
||||
if (iobase == siocniobase)
|
||||
DELAY((1 + 2) * 1000000 / (comdefaultrate / 10));
|
||||
else
|
||||
DELAY((1 + 2) * 1000000 / (SIO_TEST_SPEED / 10));
|
||||
|
||||
/*
|
||||
* Turn off loopback mode so that the interrupt gate works again
|
||||
|
Loading…
x
Reference in New Issue
Block a user