Commit a25defbb authored by Vojtech Pavlik's avatar Vojtech Pavlik

input: Fix an i8042 access timing violation spotted by Alan Cox.

parent d0a2d550
......@@ -153,6 +153,7 @@ static int i8042_flush(void)
spin_lock_irqsave(&i8042_lock, flags);
while ((i8042_read_status() & I8042_STR_OBF) && (i++ < I8042_BUFFER_SIZE)) {
udelay(50);
data = i8042_read_data();
dbg("%02x <- i8042 (flush, %s)", data,
i8042_read_status() & I8042_STR_AUXDATA ? "aux" : "kbd");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment