diff options
author | Vic Yang <victoryang@chromium.org> | 2012-08-28 06:50:17 +0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-08-27 16:33:19 -0700 |
commit | 09557cc1d35ca4961a636e9c730d1b591dcf6514 (patch) | |
tree | 78aa5545250f3647b80dd077e05de6ec9336227a /chip | |
parent | 581dd6a531aee42eade6774721117b110b40aeb8 (diff) | |
download | chrome-ec-09557cc1d35ca4961a636e9c730d1b591dcf6514.tar.gz |
stm32f: Fix a bug that PROTECT_ALL_NOW is set incorrectly
Signed-off-by: Vic Yang <victoryang@chromium.org>
BUG=chrome-os-partner:13210
TEST=Check software sync works with WP enabled.
BRANCH=snow
Change-Id: I4d71924dfbe3b3731d4bd2dcdd1a62d6d474eb38
Reviewed-on: https://gerrit.chromium.org/gerrit/31514
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Ready: Vic Yang <victoryang@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/flash-stm32f100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/flash-stm32f100.c b/chip/stm32/flash-stm32f100.c index 1221bf1b50..4c9c39b8b8 100644 --- a/chip/stm32/flash-stm32f100.c +++ b/chip/stm32/flash-stm32f100.c @@ -641,7 +641,7 @@ int flash_set_protect(uint32_t mask, uint32_t flags) EC_FLASH_PROTECT_RO_AT_BOOT)) return retval; - if (mask & EC_FLASH_PROTECT_ALL_NOW) { + if (mask & flags & EC_FLASH_PROTECT_ALL_NOW) { /* * Since RO is already protected, protecting entire flash * is effectively protecting RW. |