summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/ap_ro_integrity_check.c3
-rw-r--r--include/flash_log.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/common/ap_ro_integrity_check.c b/common/ap_ro_integrity_check.c
index 939a618c64..59ce15a25b 100644
--- a/common/ap_ro_integrity_check.c
+++ b/common/ap_ro_integrity_check.c
@@ -1447,10 +1447,10 @@ static uint8_t do_ap_ro_check(void)
if (rv != ROV_SUCCEEDED) {
/* Failure reason has already been reported. */
- ap_ro_add_flash_event(APROF_CHECK_FAILED);
if ((rv == ROV_FAILED) || check_is_required()) {
apro_result = AP_RO_FAIL;
+ ap_ro_add_flash_event(APROF_CHECK_FAILED);
keep_ec_in_reset();
/*
* Map failures into EC_ERROR_CRC, this will make sure
@@ -1465,6 +1465,7 @@ static uint8_t do_ap_ro_check(void)
}
apro_result = AP_RO_UNSUPPORTED_TRIGGERED;
+ ap_ro_add_flash_event(APROF_CHECK_UNSUPPORTED);
return EC_ERROR_UNIMPLEMENTED;
}
diff --git a/include/flash_log.h b/include/flash_log.h
index 14d65953b6..cc6c292d49 100644
--- a/include/flash_log.h
+++ b/include/flash_log.h
@@ -99,6 +99,7 @@ enum ap_ro_verification_ev {
APROF_SPACE_INVALID = 5,
APROF_CHECK_FAILED = 6,
APROF_CHECK_SUCCEEDED = 7,
+ APROF_CHECK_UNSUPPORTED = 8,
};
struct ap_ro_entry_payload {