diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2019-02-28 20:11:28 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-05 09:21:44 -0700 |
commit | 171578b67f40355528cbb5f34b78e8e8ed83e335 (patch) | |
tree | 2303b74da9487ca2d046b93ad04212feff6164ac /common/ccd_config.c | |
parent | 1d6c7bb9773f76aa70ce65822fa001ff72892cd2 (diff) | |
download | chrome-ec-171578b67f40355528cbb5f34b78e8e8ed83e335.tar.gz |
cr50: complete support of the new NVMEM structure
This patch eliminates unnecessary legacy nvmem.c and nvmem_vars.c code
and brings the code base to the state where the new NVMEM layout is
fully functional.
BRANCH=cr50, cr50-mp
BUG=b:69907320, b:129710256
CQ-DEPEND=CL:1450278
TEST=the following tests pass:
- test cases in ./test/nvmem.c
- TCG suite (passes on par with the existing Cr50 code with the
reduced code footprint TPM2 library)
- Chrome OS device migrates from legacy to new implementation with
user account maintained.
- Chrome OS user account is maintained over AP and H1 reboots and
deep sleep cycles.
Change-Id: If4bc2dd125873a79dbe0e268eb32100a8b8b352d
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1496607
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'common/ccd_config.c')
-rw-r--r-- | common/ccd_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/ccd_config.c b/common/ccd_config.c index c2a92aeb30..62f97892f4 100644 --- a/common/ccd_config.c +++ b/common/ccd_config.c @@ -389,6 +389,8 @@ static void ccd_load_config(void) ccd_reset_config(t->val_len < 2 ? CCD_RESET_TEST_LAB : 0); } + freevar(t); + ccd_is_loaded: ccd_config_loaded = 1; @@ -410,8 +412,6 @@ static int ccd_save_config(void) if (rv) return rv; - rv = writevars(); - /* * Notify CCD users of configuration change. * Protect this notify with the ccd_config_loaded flag so recipients of |