Change system76_ec timeout to 10 ms
Change-Id: Ic3d01892df83c09d8323433585e1d8fe507f8c3a
This commit is contained in:
parent
5a9fddc3de
commit
f3ba5937e7
@ -23,9 +23,9 @@ void system76_ec_flush(void) {
|
|||||||
// Send command
|
// Send command
|
||||||
system76_ec_write(0, 4);
|
system76_ec_write(0, 4);
|
||||||
|
|
||||||
// Wait for command completion, for up to 1 second
|
// Wait for command completion, for up to 10 milliseconds
|
||||||
int timeout;
|
int timeout;
|
||||||
for (timeout = 1000000; timeout > 0; timeout--) {
|
for (timeout = 10000; timeout > 0; timeout--) {
|
||||||
if (system76_ec_read(0) == 0) break;
|
if (system76_ec_read(0) == 0) break;
|
||||||
udelay(1);
|
udelay(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user