From 285d622fbcf1ba38d26eca1f900eee424de73d43 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Thu, 13 May 2021 11:00:36 -0600 Subject: [PATCH] kbc: Reduce timeout from 10ms to 1ms Fix ACPI timeout and delay on S3 resume when holding a key. A timeout greater than 1ms results in the excessive delay (~10s) still occurring on an oryp5 (IT8587). --- src/board/system76/common/kbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/board/system76/common/kbc.c b/src/board/system76/common/kbc.c index 950ef9f..96c12d8 100644 --- a/src/board/system76/common/kbc.c +++ b/src/board/system76/common/kbc.c @@ -22,7 +22,7 @@ void kbc_init(void) { *(KBC.status) = BIT(4); } -#define KBC_TIMEOUT 10000 +#define KBC_TIMEOUT 1000 // Enable first port - TODO static bool kbc_first = false;