From: Boyoung Date: Fri, 7 Dec 2018 11:08:22 +0000 (+0900) Subject: chub: increase chub fw error threshold X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3bab0199c3b6eab36aea97ffe442d6db69c71ab2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/drivers/staging/nanohub/chub.c b/drivers/staging/nanohub/chub.c index 804011d0d466..4a9587edb327 100644 --- a/drivers/staging/nanohub/chub.c +++ b/drivers/staging/nanohub/chub.c @@ -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;