From d88a175e23f37ecf024661c97b06925d8a3eabf3 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 17 Jun 2024 10:36:52 -0600 Subject: [PATCH] Clear PS/2 touchpad status when waiting for write to finish --- src/board/system76/common/kbc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/board/system76/common/kbc.c b/src/board/system76/common/kbc.c index 50f3715..92f7f49 100644 --- a/src/board/system76/common/kbc.c +++ b/src/board/system76/common/kbc.c @@ -468,6 +468,7 @@ void kbc_event(struct Kbc *const kbc) { // Wait for touchpad write transaction to finish kbc_second_wait -= 1; uint8_t sts = *(PS2_TOUCHPAD.status); + *(PS2_TOUCHPAD.status) = sts; // If transaction is done, stop waiting if (sts & PSSTS_DONE) { kbc_second_wait = 0;