chromeec: Notify CREC device of wakeup events
commita3a84565afef26f918d4ff2d80e0201be671c0b9
authorFurquan Shaikh <furquan@chromium.org>
Tue, 28 Nov 2017 22:32:17 +0000 (28 14:32 -0800)
committerFurquan Shaikh <furquan@google.com>
Thu, 30 Nov 2017 01:52:53 +0000 (30 01:52 +0000)
tree51365d4842751f87e26526a07f876217ef090e47
parenta9f72776bd5af067abf8bfc4bcdd44ec805c9e76
chromeec: Notify CREC device of wakeup events

Whenever there is a new EC event that could be wake-capable, notify
CREC device of this using notification value 0x2 i.e. device
wake. This allows Linux kernel to track active_count value correctly
for CREC device.

BUG=b:69118395
BRANCH=None
TEST=Verified on Soraka:
1. Put device into suspend
2. Wake up using mode change/lid open
3. Check that the active_count for GOOG0004 has increased
(cat wakeup_sources | grep GOOG0004)

Change-Id: I723f7f4e4c99e7a5b57c6296da66cf30cd413c27
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/22625
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
src/ec/google/chromeec/acpi/ec.asl