kane: Enable tee log for fingerprint debug
authorchenl18 <chenlei18@lenovo.com>
Wed, 21 Nov 2018 05:47:16 +0000 (13:47 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:51 +0000 (20:23 +0300)
Tee log is closed in defult state. If need open it, please
write 1 to 'swd_debug' sys node.

Change-Id: I1b98cd54f9cd92d168f08e6d5c9a572e3c59e933
Signed-off-by: chenl18 <chenlei18@mt.com>
Reviewed-on: https://gerrit.mot.com/1272090
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c

index a886bf53a3b0c7e4f60552def47908c966f5f301..e579a0200543f3d20586e5944c6ea1c10151b473 100755 (executable)
@@ -172,7 +172,6 @@ static inline int log_msg(void *data)
 
 static void logging_worker(struct kthread_work *work)
 {
-#if 0
        static DEFINE_MUTEX(local_mutex);
 
        mutex_lock(&local_mutex);
@@ -191,7 +190,6 @@ static void logging_worker(struct kthread_work *work)
                        log_ctx.tail = 0;
        }
        mutex_unlock(&local_mutex);
-#endif
 }
 
 /*
@@ -201,7 +199,6 @@ static void logging_worker(struct kthread_work *work)
  */
 void logging_run(void)
 {
-#if 0
        if (log_ctx.enabled && !log_ctx.dead &&
            log_ctx.trace_buf->head != log_ctx.tail)
 #if KERNEL_VERSION(4, 9, 0) > LINUX_VERSION_CODE
@@ -209,7 +206,6 @@ void logging_run(void)
 #else
                kthread_queue_work(&log_ctx.worker, &log_ctx.work);
 #endif
-#endif
 }
 
 /*
@@ -246,7 +242,7 @@ int logging_init(phys_addr_t *buffer, u32 *size)
        wake_up_process(log_ctx.thread);
 
        /* Debugfs switch */
-       log_ctx.enabled = true;
+       log_ctx.enabled = false;
        debugfs_create_bool("swd_debug", 0600, g_ctx.debug_dir,
                            &log_ctx.enabled);
        return 0;