summaryrefslogtreecommitdiff
path: root/common/host_command.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/host_command.c')
-rw-r--r--common/host_command.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/host_command.c b/common/host_command.c
index b5655d8593..05a1c199a6 100644
--- a/common/host_command.c
+++ b/common/host_command.c
@@ -5,6 +5,7 @@
/* Host command module for Chrome EC */
+#include "ap_hang_detect.h"
#include "common.h"
#include "console.h"
#include "host_command.h"
@@ -145,6 +146,11 @@ void host_command_received(struct host_cmd_handler_args *args)
args->result = EC_RES_ERROR;
}
+#ifdef CONFIG_AP_HANG_DETECT
+ /* If hang detection is enabled, check stop on host command */
+ hang_detect_stop_on_host_command();
+#endif
+
if (args->result) {
; /* driver has signalled an error, respond now */
#ifdef CONFIG_HOST_COMMAND_STATUS