firmware_RecoveryCacheBootKeys: Use power_state:rec_force_mrc
Previously, firmware_RecoverCacheBootKeys would call apshutdown,
hostevent set 0x20004000, powerbtn in order to force cache training.
However, this causes a race condition that was fixed for
power_state:rec in b:64738026. Now utilizing the rec_force_mrc option
in the power_state driver in order to avoid the apshutdown/cold_reset
race condition.
BUG=b:73293232, b:79540438
BRANCH=None
TEST=Run firmware_RecoveryCacheBootKeys on fizz and Soraka to ensure
works for both cros_ec_softrec_power and cros_ec_hardrec_power
drivers.
CQ-DEPEND=CL:1062147
Change-Id: I5faa9136d1e08b5c63e907e1d44e3a629129b23f
Signed-off-by: Shelley Chen <shchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1062150
Commit-Ready: Shelley Chen <shchen@chromium.org>
Tested-by: Shelley Chen <shchen@chromium.org>
Reviewed-by: Kevin Shelton <kmshelton@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
diff --git a/server/cros/servo/servo.py b/server/cros/servo/servo.py
index aca0582..cdb86f3 100644
--- a/server/cros/servo/servo.py
+++ b/server/cros/servo/servo.py
@@ -38,6 +38,7 @@
REC_ON = 'rec'
REC_OFF = 'on'
+ REC_ON_FORCE_MRC = 'rec_force_mrc'
# Delay in seconds needed between asserting and de-asserting
# warm reset.