chub: increase chub fw error threshold
authorBoyoung <eric.by.kim@samsung.com>
Fri, 7 Dec 2018 11:08:22 +0000 (20:08 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:47 +0000 (20:23 +0300)
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 804011d0d4669cfaa8d12f2999191d48958033a8..4a9587edb327ee47c6bf84e925c32ba16e8badf3 100644 (file)
@@ -348,18 +348,6 @@ static void contexthub_handle_debug(struct contexthub_ipc_info *ipc,
                goto error_handler;
        }
 
-       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;