diff options
-rw-r--r-- | src/ec/google/chromeec/smihandler.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/smihandler.c b/src/ec/google/chromeec/smihandler.c index 379ff68019..60b4d15058 100644 --- a/src/ec/google/chromeec/smihandler.c +++ b/src/ec/google/chromeec/smihandler.c @@ -48,8 +48,13 @@ void chromeec_smi_process_events(void) static void clear_pending_events(void) { + struct ec_response_get_next_event mkbp_event; + while (google_chromeec_get_event() != 0) ; + + while (google_chromeec_get_mkbp_event(&mkbp_event) == 0) + ; } void chromeec_smi_sleep(int slp_type, uint32_t s3_mask, uint32_t s5_mask) |