From f8840200e0d2032175c8cd11613c8636c3f1711a Mon Sep 17 00:00:00 2001 From: Hyungwoo Yang Date: Wed, 8 May 2019 16:53:55 -0700 Subject: ish: update firmware status Currently we missed some FW status updates that are used by host in taking critical action. BUG=b:132060059 BRANCH=none TEST=tested on Arcada platform Change-Id: I7ad607869f821eae99e37704ab3d6567d180aadd Signed-off-by: Hyungwoo Yang Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1601780 Reviewed-by: Jack Rosenthal Reviewed-by: Jett Rink --- chip/ish/host_command_heci.c | 2 ++ chip/ish/ipc_heci.c | 3 +++ 2 files changed, 5 insertions(+) (limited to 'chip') diff --git a/chip/ish/host_command_heci.c b/chip/ish/host_command_heci.c index 2de584d6b8..69736eeae7 100644 --- a/chip/ish/host_command_heci.c +++ b/chip/ish/host_command_heci.c @@ -9,6 +9,7 @@ #include "host_command.h" #include "host_command_heci.h" #include "ipc_heci.h" +#include "ish_fwst.h" #include "util.h" #define CPUTS(outstr) cputs(CC_LPC, outstr) @@ -144,6 +145,7 @@ EC_VER_MASK(0)); static int cros_ec_ishtp_subsys_initialize(const heci_handle_t heci_handle) { heci_cros_ec_handle = heci_handle; + ish_fwst_set_fw_status(FWSTS_SENSOR_APP_RUNNING); return EC_SUCCESS; } diff --git a/chip/ish/ipc_heci.c b/chip/ish/ipc_heci.c index b0faa5bfbd..394c768e28 100644 --- a/chip/ish/ipc_heci.c +++ b/chip/ish/ipc_heci.c @@ -728,5 +728,8 @@ void ipc_init(void) ctx = ipc_get_if_ctx(i); queue_init(&ctx->tx_queue); } + + /* inform host firmware is running */ + ish_fwst_set_fw_status(FWSTS_FW_IS_RUNNING); } DECLARE_HOOK(HOOK_INIT, ipc_init, HOOK_PRIO_DEFAULT); -- cgit v1.2.1