diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2019-10-29 17:23:40 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-30 18:21:09 +0000 |
commit | e6b91d68b2ae73d768d23abb79a39dc0043af963 (patch) | |
tree | 0079c0710ef0cc101fef81a4497fd76d82a21b78 | |
parent | 56b108bfe4ed82977c935355b3255fe107badc0d (diff) | |
download | chrome-ec-e6b91d68b2ae73d768d23abb79a39dc0043af963.tar.gz |
g: attempts to erase info1 should be allowed to proceed
They will fail anyways unless the RO enabled this ability.
BRANCH=none
BUG=b:74100307
TEST=manually signed an image and observed proper operation of
eraseflashinfo
Change-Id: I0033d6fa01548ea93cfb48b4e61a320a091f78eb
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1888602
Reviewed-by: Andrey Pronin <apronin@chromium.org>
-rw-r--r-- | chip/g/flash.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/chip/g/flash.c b/chip/g/flash.c index 33b3adfb87..97c342a238 100644 --- a/chip/g/flash.c +++ b/chip/g/flash.c @@ -192,12 +192,6 @@ static int do_flash_op(enum flash_op op, int is_info_bank, /* What are we doing? */ switch (op) { case OP_ERASE_BLOCK: -#ifndef CR50_DEV - if (is_info_bank) - /* Erasing the INFO bank from the RW section is - * unsupported. */ - return EC_ERROR_INVAL; -#endif opcode = 0x31415927; words = 0; /* don't care, really */ /* This number is based on the TSMC spec Nme=Terase/Tsme */ |