summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2016-11-01 15:22:02 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-11-04 18:31:37 -0700
commit1f6600fd344bb5eb5476206a05c2bc773252d788 (patch)
treed8caf368622dbfc5fe07788f591030dd24d5cc3e /include
parentf7d5360449aa3eead464c37d3ded19f582e6291e (diff)
downloadchrome-ec-1f6600fd344bb5eb5476206a05c2bc773252d788.tar.gz
mkbp_event: Properly queue events during host sleep
Don't queue non-wake events, and ensure wake events (and all subsequent events) always get queued. BUG=chrome-os-partner:59248, chrome-os-partner:59336 BRANCH=gru TEST=Manual on kevin, go to suspend, press volume keys dozens of times, press 'shift', verify device wakes. Place cursor on URL bar, go to suspend, type "google" quickly, verify device wakes and "google" appears on URL bar. Go to suspend, press 'VolUp' key 5 times, press keyboard, verify device wakes and no volume meter is seen on display. Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: Ibe761187fbcefd686776a512786550970a6fc067 Reviewed-on: https://chromium-review.googlesource.com/405717 Commit-Queue: Douglas Anderson <dianders@chromium.org> Tested-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> (cherry picked from commit aa2f01566314604404e104d7975c6c755c22a601) Reviewed-on: https://chromium-review.googlesource.com/407958 Commit-Ready: Douglas Anderson <dianders@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/mkbp_event.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mkbp_event.h b/include/mkbp_event.h
index 6e97c2e973..cad43444b5 100644
--- a/include/mkbp_event.h
+++ b/include/mkbp_event.h
@@ -15,8 +15,9 @@
* when the AP queries the event, an error is returned and the event is lost.
*
* @param event_type One of EC_MKBP_EVENT_*.
+ * @return True if event succeeded to generate host interrupt.
*/
-void mkbp_send_event(uint8_t event_type);
+int mkbp_send_event(uint8_t event_type);
/*
* The struct to store the event source definition. The get_data routine is