From 4ae71a1765a996ca73f5556f4d1d0218b9d2dca5 Mon Sep 17 00:00:00 2001 From: chenl18 Date: Wed, 21 Nov 2018 13:47:16 +0800 Subject: [PATCH] kane: Enable tee log for fingerprint debug 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 Reviewed-on: https://gerrit.mot.com/1272090 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c b/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c index a886bf53a3b0..e579a0200543 100755 --- a/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c +++ b/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c @@ -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; -- 2.20.1