coreboot-kgpe-d16/src/ec/google/chromeec
Furquan Shaikh c1ca65df3f google/chromeec: Drain all MKBP events while clearing host events
EC maintains a FIFO of all MKBP events and sets host event whenever
a new entry is added to the FIFO. Clearing only the host event for
MKBP creates an inconsistent state where there are pending MKBP events
in the FIFO but host event for MKBP is cleared. In order to maintain a
consistent view, host should clear all MKBP events in the FIFO if host
event is being cleared.

This change drains out all the MKBP events in the FIFO when
clear_pending_events is called.

TEST=Verified by adding debug logs in EC to verify that all the MKBP
events that occur before clear_pending_events is called get cleared
from the FIFO.

Change-Id: I131722dc01608dff30230fe341e6b23ae4cc409e
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/22005
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
2017-10-18 00:38:49 +00:00
..
acpi ec/google: Use feature flag layout that matches the EC host command 2017-08-30 07:27:16 +00:00
chip.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
crosec_proto.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ec.c google/chromeec: Add new helper function to read MKBP events 2017-10-18 00:38:35 +00:00
ec.h google/chromeec: Add new helper function to read MKBP events 2017-10-18 00:38:35 +00:00
ec_boardid.c chromeec: Provide helper routine to read boardid from Chrome EC 2017-09-26 13:38:44 +00:00
ec_commands.h ec/google: Add command to set APU SKU ID to EC 2017-09-13 17:03:34 +00:00
ec_i2c.c include/device: Split i2c.h into three 2017-08-18 15:33:29 +00:00
ec_lpc.c src/ec: add IS_ENABLED() around Kconfig symbol references 2017-06-28 17:49:22 +00:00
ec_mec.c ec/google/chromeec/ec_lpc: Declare used IO ports as a resource 2016-05-06 18:59:00 +02:00
ec_message.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
ec_spi.c Use stopwatch_wait_until_expired where applicable 2017-09-26 16:53:28 +00:00
Kconfig chromeec: Provide helper routine to read boardid from Chrome EC 2017-09-26 13:38:44 +00:00
Makefile.inc chromeec: Provide helper routine to read boardid from Chrome EC 2017-09-26 13:38:44 +00:00
smihandler.c google/chromeec: Drain all MKBP events while clearing host events 2017-10-18 00:38:49 +00:00
smm.h ec/google/chromeec: Add support for EC device events 2017-07-01 02:48:50 +00:00
switches.c vboot: Move remaining features out of vendorcode/google/chromeos 2017-03-28 22:18:13 +02:00
vboot_storage.c google/chromeec: implement vboot_(save|retrieve)_hash API 2016-02-04 17:34:58 +01:00
vstore.c google/chromeec: Add temporary storage interface 2016-02-04 17:21:04 +01:00