summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@google.com>2020-03-08 01:09:56 -0800
committerCommit Bot <commit-bot@chromium.org>2020-03-10 01:21:20 +0000
commitc2aa02c9118a32d6ff4b0d5d55345bfd667ab6b8 (patch)
tree983f136ca15a6f4ee80b727b16f93f77d050a110
parented5d065324a4c7134348d13f6a7c120d3bde8821 (diff)
downloadchrome-ec-c2aa02c9118a32d6ff4b0d5d55345bfd667ab6b8.tar.gz
fix in EC-EFS command, SET_BOOT_MODE
This patch changes fixes the pre-condition to check before it processes the command, SET_BOOT_MODE. It should check if the current boot mode is NORMAL mode, but it used to check if the input parameter value is NORMAL mode. BUG=none BRANCH=cr50 TEST=make buildall -j Signed-off-by: Namyoon Woo <namyoon@chromium.org> Change-Id: I85e0a3a1ed27a276262a7b9d3889c826cca14d19 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2094075 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--board/cr50/ec_efs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cr50/ec_efs.c b/board/cr50/ec_efs.c
index 5d5ca623e1..8f5bece989 100644
--- a/board/cr50/ec_efs.c
+++ b/board/cr50/ec_efs.c
@@ -181,7 +181,7 @@ uint16_t ec_efs_set_boot_mode(const char * const data, const uint8_t size)
boot_mode = data[0];
- if (boot_mode != EC_EFS_BOOT_MODE_NORMAL) {
+ if (ec_efs_ctx.boot_mode != EC_EFS_BOOT_MODE_NORMAL) {
board_reboot_ec_deferred(0);
return 0;
}