summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-09-12 12:58:59 -0700
committerGerrit <chrome-bot@google.com>2012-09-12 14:17:12 -0700
commite212b100cc6473984c0f1a2f2fe7cc9012ddd66b (patch)
treeb4cf5970363934441a020b0dbeca055f4cdc1ffe
parentea61165d2586fef4541ac0e5a8b77e900fc876b2 (diff)
downloadchrome-ec-e212b100cc6473984c0f1a2f2fe7cc9012ddd66b.tar.gz
Fix not setting in_progress flag when starting hash computation
This allows recomputing hash after EC boots. BUG=chrome-os-partner:13988 BRANCH=all TEST=manual 1. hash 2048 2048 2. hash 0 2048 3. hash -> hash value should be different than in step 1 Change-Id: Id66d0655a143b5190b5d8949b0fa9a18dbbc05f4 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/33118 Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/vboot_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/vboot_hash.c b/common/vboot_hash.c
index f762835f34..535f7f81c0 100644
--- a/common/vboot_hash.c
+++ b/common/vboot_hash.c
@@ -66,6 +66,7 @@ static int vboot_hash_start(uint32_t offset, uint32_t size,
curr_pos = 0;
hash = NULL;
want_abort = 0;
+ in_progress = 1;
/* Restart the hash computation */
CPRINTF("[%T hash start 0x%08x 0x%08x]\n", offset, size);
@@ -107,7 +108,6 @@ static void vboot_hash_init(void)
vboot_hash_start(CONFIG_FW_RW_OFF,
system_get_image_used(SYSTEM_IMAGE_RW),
NULL, 0);
- in_progress = 1;
}
}