summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@google.com>2019-01-30 16:38:42 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-06 06:51:01 -0800
commit18ff0fd2603f8013b9b6798987fef5a8c3e53909 (patch)
tree2effc4268b6130ac81e2ad9f73fafff53abbeeda
parent26bff5c06189273298658f20cf8df4d83970cdaa (diff)
downloadchrome-ec-18ff0fd2603f8013b9b6798987fef5a8c3e53909.tar.gz
cr50: set ap state to unknown while waiting for reset
While cr50 is waiting to see the AP reset, set the state to unknown. BUG=b:123544145 BRANCH=cr50 TEST=firmware_Cr50DeviceState Change-Id: I33f5758a6e3c41bd1c9d0c69ced8685365005a28 Signed-off-by: Mary Ruthven <mruthven@google.com> Reviewed-on: https://chromium-review.googlesource.com/1447000 Commit-Ready: Mary Ruthven <mruthven@chromium.org> Tested-by: Mary Ruthven <mruthven@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--board/cr50/ap_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/cr50/ap_state.c b/board/cr50/ap_state.c
index 7e7d1231d2..f40360fa0c 100644
--- a/board/cr50/ap_state.c
+++ b/board/cr50/ap_state.c
@@ -130,6 +130,9 @@ void board_closed_loop_reset(void)
/* Disable sleep while waiting for the reset */
disable_sleep(SLEEP_MASK_AP_RUN);
+ /* Until the AP resets, we can't trust it's state */
+ set_state(DEVICE_STATE_UNKNOWN);
+
waiting_for_ap_reset = 1;
/* Disable AP communications with the TPM until cr50 sees the reset */