chub: increase chub fw error threshold
authorBoyoung <eric.by.kim@samsung.com>
Fri, 7 Dec 2018 11:08:22 +0000 (20:08 +0900)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:04 +0000 (17:30 +0800)
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 2cdc9bdacab33382878b8791a3f5f159628058ed..d06f927d67fd84b5494c5cf41507b663188d020e 100644 (file)
@@ -349,18 +349,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;