diff options
author | Hyungwoo Yang <hyungwoo.yang@intel.com> | 2019-05-08 16:53:55 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2019-05-16 15:18:15 +0000 |
commit | 89be8de4362b2615c385dd2bc21110749d17f841 (patch) | |
tree | bfd7f2a4b2980e373d2fffd6f154dee366643f59 /chip | |
parent | 0ac6316df6dad527a44a2537a4a42b7803035e38 (diff) | |
download | chrome-ec-89be8de4362b2615c385dd2bc21110749d17f841.tar.gz |
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 <hyungwoo.yang@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1601780
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1615483
Commit-Queue: Jett Rink <jettrink@chromium.org>
Tested-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/ish/host_command_heci.c | 2 | ||||
-rw-r--r-- | chip/ish/ipc_heci.c | 3 |
2 files changed, 5 insertions, 0 deletions
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 0086488155..98b9f7699d 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); |