diff options
author | Hyungwoo Yang <hyungwoo.yang@intel.com> | 2019-05-08 16:53:55 -0700 |
---|---|---|
committer | Jett Rink <jettrink@chromium.org> | 2019-05-14 16:34:24 +0000 |
commit | f8840200e0d2032175c8cd11613c8636c3f1711a (patch) | |
tree | 1c22bfe5a5290ea801f17b3f73e0b908b16e4e1f | |
parent | 7671f9d7dbe7d5590fccd5a16b97d1c8d45ce3c7 (diff) | |
download | chrome-ec-f8840200e0d2032175c8cd11613c8636c3f1711a.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>
-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 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); |