summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2020-03-02 12:08:32 +0800
committerCommit Bot <commit-bot@chromium.org>2020-03-05 21:55:31 +0000
commitb7985aac655e5563e5449634fe3cada5f8fb1ae1 (patch)
tree973867b949d3df01c8f50ff8479ff8402ceae683
parentf17876b8846f9e5272fe1eef2987da79c4243666 (diff)
downloadvboot-firmware-hatch-12672.117.B.tar.gz
vboot: Set VB2_SD_STATUS_EC_SYNC_COMPLETE in shared data statusfirmware-hatch-12672.Bfirmware-hatch-12672.117.B
CL:1877066 introduced shared data status VB2_SD_STATUS_EC_SYNC_COMPLETE, but incorrectly saved it in shared data flags. BRANCH=hatch BUG=chromium:1057517 TEST=make runtests Change-Id: Idc993304760c419f80c6b160b30763142cf47234 Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2082756 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2090580 Reviewed-by: Shelley Chen <shchen@chromium.org> Commit-Queue: Shelley Chen <shchen@chromium.org> Tested-by: Shelley Chen <shchen@chromium.org>
-rw-r--r--firmware/2lib/2ec_sync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/2lib/2ec_sync.c b/firmware/2lib/2ec_sync.c
index aa06303b..24de0e20 100644
--- a/firmware/2lib/2ec_sync.c
+++ b/firmware/2lib/2ec_sync.c
@@ -453,10 +453,10 @@ vb2_error_t vb2api_ec_sync(struct vb2_context *ctx)
vb2_error_t rv;
/*
- * If the flags indicate that the EC has already gone through
+ * If the status indicates that the EC has already gone through
* software sync this boot, then don't do it again.
*/
- if (sd->flags & VB2_SD_STATUS_EC_SYNC_COMPLETE) {
+ if (sd->status & VB2_SD_STATUS_EC_SYNC_COMPLETE) {
VB2_DEBUG("EC software sync already performed this boot, skipping\n");
return VB2_SUCCESS;
}
@@ -494,7 +494,7 @@ vb2_error_t vb2api_ec_sync(struct vb2_context *ctx)
return rv;
/* Establish that EC software sync is complete and successful */
- sd->flags |= VB2_SD_STATUS_EC_SYNC_COMPLETE;
+ sd->status |= VB2_SD_STATUS_EC_SYNC_COMPLETE;
return VB2_SUCCESS;
}