[ERD][APR-103] [COMMON]chub: increase chub fw error threshold
authorBoyoung <eric.by.kim@samsung.com>
Fri, 7 Dec 2018 11:08:22 +0000 (20:08 +0900)
committerhskang <hs1218.kang@samsung.com>
Sun, 21 Apr 2019 09:08:54 +0000 (18:08 +0900)
chub sensor driver detects invalid error
if chub fw booting is delaied with multi-os booting

Change-Id: Ie3712367ad39b6b25062d605380b222017ce76b5
Signed-off-by: Boyoung <eric.by.kim@samsung.com>
drivers/staging/nanohub/chub.c

index 7e0d8bcf23fa5449dfbb32f255c9170861d5c92f..ce41e472feed49be3f3d77567650fdcca31d8175 100644 (file)
@@ -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;