From 502bacc3357efa213376b66d62340393af8f8839 Mon Sep 17 00:00:00 2001 From: Boyoung Date: Fri, 7 Dec 2018 20:08:22 +0900 Subject: [PATCH] [ERD][APR-103] [COMMON]chub: increase chub fw error threshold chub sensor driver detects invalid error if chub fw booting is delaied with multi-os booting Change-Id: Ie3712367ad39b6b25062d605380b222017ce76b5 Signed-off-by: Boyoung --- drivers/staging/nanohub/chub.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/staging/nanohub/chub.c b/drivers/staging/nanohub/chub.c index 7e0d8bcf23fa..ce41e472feed 100644 --- a/drivers/staging/nanohub/chub.c +++ b/drivers/staging/nanohub/chub.c @@ -298,7 +298,7 @@ static bool contexthub_lowlevel_alive(struct contexthub_ipc_info *ipc) return ipc->chub_alive_lock.flag; } -#define CHUB_RESET_THOLD (5) +#define CHUB_RESET_THOLD (10) /* handle errors of chub driver and fw */ static void handle_debug_work(struct contexthub_ipc_info *ipc, enum chub_err_type err) { @@ -342,18 +342,6 @@ static void request_debug_work(struct contexthub_ipc_info *ipc, dev_info(ipc->dev, "%s: err:%d(cnt:%d), enable_wq:%d\n", __func__, err, ipc->err_cnt[err], enable_wq); - if (err < CHUB_ERR_NEED_RESET) { - if (ipc->err_cnt[err] > CHUB_RESET_THOLD) { - atomic_set(&ipc->chub_status, CHUB_ST_ERR); - ipc->err_cnt[err] = 0; - dev_info(ipc->dev, "%s: err:%d(cnt:%d), enter error status\n", - __func__, err, ipc->err_cnt[err]); - } else { - ipc->err_cnt[err]++; - return; - } - } - /* get chub-fw err */ if (err == CHUB_ERR_NANOHUB) { enum ipc_debug_event fw_evt; -- 2.20.1