coreboot-kgpe-d16/src/ec
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 Kconfig: Indent help text 2017-06-07 22:01:34 +02:00
compal/ene932 device/pnp: remove struct io_info 2017-06-13 15:21:58 +02:00
google/chromeec google/chromeec: Drain all MKBP events while clearing host events 2017-10-18 00:38:49 +00:00
hp/kbc1126 ec: add support for KBC1126 in HP laptops 2017-08-11 16:10:52 +00:00
kontron/it8516e device/pnp: remove struct io_info 2017-06-13 15:21:58 +02:00
lenovo ec/lenovo/h8: Serialize control method _CRS 2017-10-10 11:35:31 +00:00
purism/librem ec/purism/librem: fix battery present rate 2017-09-19 14:11:07 +00:00
quanta ec/quanta/it8518: add missing HID to SIO device 2017-09-19 14:11:26 +00:00
roda/it8518 device/pnp: remove struct io_info 2017-06-13 15:21:58 +02:00
smsc/mec1308 ec/mec1308: Fix fan control ACPI 2017-07-08 19:06:00 +00:00
ec.h mainboards,ec: provide common declaration for mainboard_ec_init() 2016-09-26 23:53:12 +02:00