From 65d11d9dedb7b897f1fa427b385152a3bee4b744 Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Thu, 25 Oct 2018 09:51:21 -0600 Subject: vboot_api: Add new VB_AUX_FW_NO_DEVICE update severity There is a possibility that a registered device is not present at run-time and this scenario needs to be handled a little different. Add a new update severity to handle this situation. BUG=chromium:896451 BRANCH=None TEST=bootup to ChromeOS by connecting and disconnecting the USB daughterboard Change-Id: I8a2044ce6a10fe611ee1f47262a7b54598a53ce3 Signed-off-by: Karthikeyan Ramasubramanian Reviewed-on: https://chromium-review.googlesource.com/1299993 Commit-Ready: ChromeOS CL Exonerator Bot Reviewed-by: Furquan Shaikh Reviewed-by: Julius Werner Reviewed-by: Jett Rink Signed-off-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/c/1355747 Commit-Queue: Furquan Shaikh Tested-by: Furquan Shaikh Trybot-Ready: Furquan Shaikh --- firmware/include/vboot_api.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h index 5eedcaab..904e5a20 100644 --- a/firmware/include/vboot_api.h +++ b/firmware/include/vboot_api.h @@ -893,12 +893,14 @@ VbError_t VbExEcBatteryCutOff(void); * severity levels for an auxiliary firmware update request */ typedef enum { + /* no update needed and no protection needed */ + VB_AUX_FW_NO_DEVICE = 0, /* no update needed */ - VB_AUX_FW_NO_UPDATE = 0, + VB_AUX_FW_NO_UPDATE = 1, /* update needed, can be done quickly */ - VB_AUX_FW_FAST_UPDATE = 1, + VB_AUX_FW_FAST_UPDATE = 2, /* update needed, "this would take a while..." */ - VB_AUX_FW_SLOW_UPDATE = 2, + VB_AUX_FW_SLOW_UPDATE = 3, } VbAuxFwUpdateSeverity_t; /** -- cgit v1.2.1