From f3ba5937e778105cb7e75de9a1d4adf54ea825e5 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 2 Jul 2020 09:39:46 -0600 Subject: [PATCH] Change system76_ec timeout to 10 ms Change-Id: Ic3d01892df83c09d8323433585e1d8fe507f8c3a --- src/drivers/system76_ec/system76_ec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/system76_ec/system76_ec.c b/src/drivers/system76_ec/system76_ec.c index 2ca8831063..3bf83a7f66 100644 --- a/src/drivers/system76_ec/system76_ec.c +++ b/src/drivers/system76_ec/system76_ec.c @@ -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); }