diff options
author | Mary Ruthven <mruthven@chromium.org> | 2021-11-24 09:00:30 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-29 23:03:01 +0000 |
commit | b70f24b1bb05d88998364c92f77279e307f3b5cf (patch) | |
tree | d8cd9e6e3d84b51fda47ab34a939e16245c04e38 /include | |
parent | 3398bcd4769a2df7e3f6261bfe6cb900d4b1254d (diff) | |
download | chrome-ec-2.94_mp.0.tar.gz |
ap_ro_integrity_check: call keep_ec_in_reset in do_ap_ro_checkv2.94_mp.0
Move the keep_ec_in_reset call into do_ap_ro_check, so AP RO
verification will hold the EC in reset when it's triggered from the AP.
This change removes the ap_ro_verification_failed_ variable, so all of
the AP RO verification is included in ap_ro_info. ap_ro_ver_state isn't
needed anymore, so this CL removes it.
BUG=b:207545621
TEST=make clobber ; make buildall -j
Change-Id: Id0b2e04b042d48f2b8a9dae021e762369ca5f3eb
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3300174
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Commit-Queue: Vadim Bendebury <vbendeb@chromium.org>
(cherry picked from commit a6b008b3aa19a48e1f769bb88e11aee1d64591f6)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3307914
Diffstat (limited to 'include')
-rw-r--r-- | include/ap_ro_integrity_check.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/include/ap_ro_integrity_check.h b/include/ap_ro_integrity_check.h index 12d701c44b..38e4c57ff4 100644 --- a/include/ap_ro_integrity_check.h +++ b/include/ap_ro_integrity_check.h @@ -18,16 +18,9 @@ enum ap_ro_status { }; /* * validate_ap_ro: based on information saved in an H1 RO flash page verify - * contents of the AP flash. - * - * Returns: - * - * EC_SUCCESS if valid integrity check information was found and the AP flash - * check succeeded. - * EC_ERROR_INVAL in valid integrity check information was not found. - * EC_ERROR_CRC if information was found, but the AP flash check failed. + * contents of the AP flash. Hold the EC in reset if verification fails. */ -int validate_ap_ro(void); +void validate_ap_ro(void); /* * ap_ro_add_flash_event: add a flash log event to keep track of AP RO |