From 794d22288650aad2f4faa724af6e511f9c9fbad7 Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Wed, 18 Oct 2017 10:37:55 -0700 Subject: cr50_enable_update: Add printk before EC hibernate Add printout before EC hibernates during a cr50 update to clarify that failure is due to EC rather than cr50. Ran into a situation where DUT shut down during cr50 update and the EC was the culprit. BUG=None BRANCH=None TEST=None Change-Id: I54813fec123de69604d1da4dfc65eaeb77d1662e Signed-off-by: Shelley Chen Reviewed-on: https://review.coreboot.org/22120 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/vendorcode/google/chromeos/cr50_enable_update.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vendorcode/google/chromeos') diff --git a/src/vendorcode/google/chromeos/cr50_enable_update.c b/src/vendorcode/google/chromeos/cr50_enable_update.c index e962f194cd..0ec0e70864 100644 --- a/src/vendorcode/google/chromeos/cr50_enable_update.c +++ b/src/vendorcode/google/chromeos/cr50_enable_update.c @@ -61,6 +61,7 @@ static void enable_update(void *unused) if (IS_ENABLED(CONFIG_POWER_OFF_ON_CR50_UPDATE)) { if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)) + printk(BIOS_INFO, "Hibernating EC.\n"); google_chromeec_reboot(0, EC_REBOOT_HIBERNATE, EC_REBOOT_FLAG_ON_AP_SHUTDOWN); poweroff(); -- cgit v1.2.3