chromeec: Clear post code before reboot to RO
When doing an EC requested reboot to RO mode clear the saved post code in order to prevent confusing events in the log where the system is rebooted intentionally. BUG=chrome-os-partner:28234 BRANCH=none TEST=build and boot on samus, run FAFT, check for odd eventlog entries about last post code 0x31 when it is rebooted during samus romstage entry point. Change-Id: I8bedc611712424bf1044cdca1972e34ffdd51abd Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/215681 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
94ec79b0ab
commit
e32d7a7e54
1 changed files with 2 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ void google_chromeec_check_ec_image(int expected_type)
|
|||
cec_cmd.cmd_size_in = sizeof(reboot_ec);
|
||||
cec_cmd.cmd_size_out = 0; /* ignore response, if any */
|
||||
printk(BIOS_DEBUG, "Rebooting with EC in RO mode:\n");
|
||||
post_code(0); /* clear current post code */
|
||||
google_chromeec_command(&cec_cmd);
|
||||
udelay(1000);
|
||||
hard_reset();
|
||||
|
|
@ -452,6 +453,7 @@ void google_chromeec_init(void)
|
|||
cec_cmd.cmd_size_in = sizeof(reboot_ec);
|
||||
cec_cmd.cmd_size_out = 0; /* ignore response, if any */
|
||||
printk(BIOS_DEBUG, "Rebooting with EC in RO mode:\n");
|
||||
post_code(0); /* clear current post code */
|
||||
google_chromeec_command(&cec_cmd);
|
||||
udelay(1000);
|
||||
hard_reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue