diff options
author | Stefan Adolfsson <sadolfsson@google.com> | 2018-05-08 00:00:09 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-12 12:06:06 -0700 |
commit | 74b5a2ccb58739d4e21fdeb36e40fe01c0ca7ede (patch) | |
tree | 6e3ee62743efffa65e3ff050d467074e5931da35 /common/mkbp_event.c | |
parent | 53f61a76b74204b4e44679aa24047c97569c8d1e (diff) | |
download | chrome-ec-74b5a2ccb58739d4e21fdeb36e40fe01c0ca7ede.tar.gz |
npcx: CEC: Send CEC message in mkbp event
Instead of fetching incoming CEC messages using a specific read
command, extend the standard mkbp event so the CEC message can
be delivered directly inside the event.
Signed-off-by: Stefan Adolfsson <sadolfsson@chromium.org>
BUG=b:76467407
BRANCH=none
TEST="ectool cec read" still working with a kernel that has support
for the increased mkbp size.
CQ-DEPEND=CL:1046186,CL:1051085
Change-Id: Id9d944be86ba85084b979d1df9057f7f3e7a1fd0
Reviewed-on: https://chromium-review.googlesource.com/1051105
Commit-Ready: Stefan Adolfsson <sadolfsson@chromium.org>
Tested-by: Stefan Adolfsson <sadolfsson@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/mkbp_event.c')
-rw-r--r-- | common/mkbp_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/mkbp_event.c b/common/mkbp_event.c index 616f489df6..d89e740568 100644 --- a/common/mkbp_event.c +++ b/common/mkbp_event.c @@ -143,7 +143,7 @@ static int mkbp_get_next_event(struct host_cmd_handler_args *args) } DECLARE_HOST_COMMAND(EC_CMD_GET_NEXT_EVENT, mkbp_get_next_event, - EC_VER_MASK(0)); + EC_VER_MASK(0) | EC_VER_MASK(1)); #ifdef CONFIG_MKBP_WAKEUP_MASK static int mkbp_get_wake_mask(struct host_cmd_handler_args *args) |