chromeec: Fix logging of EC wake events
commitb12e9becfe47f8f02046274181ce8bae122ab58a
authorDuncan Laurie <dlaurie@chromium.org>
Mon, 29 Sep 2014 20:04:06 +0000 (29 13:04 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 2 Apr 2015 15:28:12 +0000 (2 17:28 +0200)
tree5db0bf92c6931cf6cf6b0e8765db405f2e65d295
parent3b6a88ed7e49a71be5399755aa2640985547d34b
chromeec: Fix logging of EC wake events

The EC behavior for reading events from the ACPI interface was broken
with this commit:

d899fda lpc: ACPI query-next-event drops masked events
https://chromium-review.googlesource.com/194935

This is causing no EC wake events to be logged.  To make sure they are
logged once again set the wake mask before querying for events.

Also remove the check for port80 event logging since this is no longer
used as we now store the port80 code in CMOS and this is unnecessary
commands to do for the resume path.

BUG=chrome-os-partner:32462
BRANCH=samus,auron
TEST=build and boot on samus, check for EC wake events for keyboard
and lid in the event log.

Change-Id: Ib46fc00006ff0e5777941fc3ab1d81607359c4cb
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Original-Commit-Id: b4dccc03bdded8411cc1429521579ea006ec58a7
Original-Change-Id: Icdd0c1a37a94e0cbd9fd256172324bf989e6d0dc
Original-Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/220373
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9215
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
src/ec/google/chromeec/ec.c