coreboot-kgpe-d16/src/mainboard/google/slippy
Matt DeVillier 0868f96439 mb/google/{auron,slippy}/ec: clear pending events on S3 wakeup
Commit 6ae8b50 [chromeec: Depend on events_copy_b to identify wake source]
partially broke resume from suspend on Auron and Slippy variants when
multiple events exist in the EC event queue. In the case of the device
suspending manually and then subsequently having the lid closed, the device
will be stuck in a resume/suspend/resume loop until the device is forcibly
powered down.

Mitigate this by clearing any pending EC events on S3 wakeup.

Test: build/boot several Auron/Slippy variants, test suspend/resume functional
with both single and multiple events in EC event queue.

Change-Id: I7ec9ec575d41c5b7522c4e13fc32b0b7c77d20d9
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38984
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2020-02-24 12:45:48 +00:00
..
acpi sb/intel/lynxpoint: Use sb/intel/common/platform.asl 2019-11-04 11:46:42 +00:00
variants mb/**/hda_verb.{c,h}: use denary numerals for codec IDs 2020-01-02 14:26:10 +00:00
acpi_tables.c mb/*/*/acpi_tables: Remove unnecessary function call 2019-12-27 09:09:02 +00:00
board_info.txt
chromeos.c mainboard/google: Remove use of __PRE_RAM__ 2019-08-19 00:03:37 +00:00
chromeos.fmd mainboard: Enable PRESERVE flag in all vboot/chromeos FMD files 2019-03-05 20:52:06 +00:00
cmos.layout
data.vbt mb/google/slippy: update VBT 2020-01-15 13:12:38 +00:00
dsdt.asl mb/**/acpi: Remove unused files 2019-12-31 18:57:16 +00:00
ec.c mb/google/{auron,slippy}/ec: clear pending events on S3 wakeup 2020-02-24 12:45:48 +00:00
ec.h
gma-mainboard.ads
Kconfig Kconfig: comply to Linux 5.3's Kconfig language rules 2019-11-23 20:09:56 +00:00
Kconfig.name
mainboard.c mb/*/{BiosCallOuts,mainboard,romstage}.c: Remove unused <device/pci_{def,ops}.h> 2019-12-19 04:36:23 +00:00
Makefile.inc arch/x86: Avoid HAVE_SMI_HANDLER conditional with smm-class 2019-07-09 12:43:35 +00:00
onboard.h mb/google/slippy: Fix IRQ of the ambient light sensor 2020-02-17 16:04:54 +00:00
romstage.c soc/intel: Use common romstage code 2019-08-26 21:08:41 +00:00
smihandler.c ELOG: Introduce elog_gsmi variants 2019-11-09 10:49:47 +00:00
thermal.h
variant.h cpu/intel: Enter romstage without BIST 2019-08-18 19:03:22 +00:00