Change system76_ec timeout to 10 ms

Change-Id: Ic3d01892df83c09d8323433585e1d8fe507f8c3a
This commit is contained in:
Jeremy Soller 2020-07-02 09:39:46 -06:00
parent 5a9fddc3de
commit f3ba5937e7
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -23,9 +23,9 @@ void system76_ec_flush(void) {
// Send command
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;
for (timeout = 1000000; timeout > 0; timeout--) {
for (timeout = 10000; timeout > 0; timeout--) {
if (system76_ec_read(0) == 0) break;
udelay(1);
}