diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2020-11-25 18:38:21 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-10 03:16:49 +0000 |
commit | 38981368658817aa15152d5c3aa61e56a9541580 (patch) | |
tree | 212ac529bfe2eebb996fd5c50a956fd4c5358f18 /include/ec_commands.h | |
parent | d9b7ea8ff23a744e7a5e0f28fe7ca0e36ef11a9d (diff) | |
download | chrome-ec-38981368658817aa15152d5c3aa61e56a9541580.tar.gz |
PCHG: Send device event to host
This patch makes PCHG send EC_HOST_EVENT_DEVICE on every state
machine cycle. The host is expected to retrieve the device
event mask through EC_CMD_DEVICE_EVENT and updates port status
if the mask has EC_DEVICE_EVENT_WLC.
BUG=b:173235954
BRANCH=Trogdor
TEST=Enabled and disabled EC_DEVICE_EVENT_WLC via deviceevent
command and verified the sysfs node is updated.
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Change-Id: I9dece6bc35599db3d6ae30452fd8e97bbaeab9af
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2579722
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 7b3e6de6d4..0ff5c4e571 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -4670,6 +4670,7 @@ enum ec_device_event { EC_DEVICE_EVENT_TRACKPAD, EC_DEVICE_EVENT_DSP, EC_DEVICE_EVENT_WIFI, + EC_DEVICE_EVENT_WLC, }; enum ec_device_event_param { |