diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2017-02-22 16:52:04 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-02-25 16:34:15 -0800 |
commit | 6ba124a81bd6d5af1edae5f30add22e81b8b7de7 (patch) | |
tree | 8305113b48e281b41ee4bbf005eb5a07d7e07a3a /common | |
parent | 9619578ad20a2a4c9ed500e53227fab6158e41d0 (diff) | |
download | chrome-ec-6ba124a81bd6d5af1edae5f30add22e81b8b7de7.tar.gz |
hostcmd: Remove EC_CMD_VBNV_CONTEXT handler for most boards
Most boards do not keep VBNV storage on the EC, so leave out the host
command handler by default.
BUG=chromium:693210
BRANCH=None
TEST=`make buildall -j`
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: Ia202ec7d73d1804d8430fe7516cc783afd86e89a
Reviewed-on: https://chromium-review.googlesource.com/446716
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/system.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/common/system.c b/common/system.c index a5824f0a72..8608a9913c 100644 --- a/common/system.c +++ b/common/system.c @@ -1223,6 +1223,7 @@ DECLARE_HOST_COMMAND(EC_CMD_GET_BOARD_VERSION, EC_VER_MASK(0)); #endif +#ifdef CONFIG_HOSTCMD_VBNV_CONTEXT int host_command_vbnvcontext(struct host_cmd_handler_args *args) { const struct ec_params_vbnvcontext *p = args->params; @@ -1250,15 +1251,10 @@ int host_command_vbnvcontext(struct host_cmd_handler_args *args) return EC_RES_SUCCESS; } - -/* - * TODO(crbug.com/239197) : Adding both versions to the version mask is a - * temporary workaround for a problem in the cros_ec driver. Drop - * EC_VER_MASK(0) once cros_ec driver can send the correct version. - */ DECLARE_HOST_COMMAND(EC_CMD_VBNV_CONTEXT, host_command_vbnvcontext, - EC_VER_MASK(EC_VER_VBNV_CONTEXT) | EC_VER_MASK(0)); + EC_VER_MASK(EC_VER_VBNV_CONTEXT)); +#endif /* CONFIG_HOSTCMD_VBNV_CONTEXT */ int host_command_reboot(struct host_cmd_handler_args *args) { |