From b15788b3613da20408517096ac608451274c9818 Mon Sep 17 00:00:00 2001 From: zhangh12 Date: Thu, 31 Jan 2019 18:13:52 +0800 Subject: [PATCH] config: enable tee debug on debug build. Change-Id: Ie36d8625f933d6ba0caeeae678e29867d881144d Signed-off-by: zhangh12 Reviewed-on: https://gerrit.mot.com/1303580 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- arch/arm64/configs/ext_config/debug-erd9610.config | 1 + drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/arch/arm64/configs/ext_config/debug-erd9610.config b/arch/arm64/configs/ext_config/debug-erd9610.config index ccdeb8ac9b90..eda1c4da48f3 100644 --- a/arch/arm64/configs/ext_config/debug-erd9610.config +++ b/arch/arm64/configs/ext_config/debug-erd9610.config @@ -54,3 +54,4 @@ CONFIG_FAULT_INJECTION_DEBUG_FS=y CONFIG_FAULT_INJECTION_STACKTRACE_FILTER=y CONFIG_DYNAMIC_DEBUG=y CONFIG_DEBUG_SPINLOCK_BITE_ON_BUG=y +CONFIG_TRUSTONIC_TEE_DEBUG=y diff --git a/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c b/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c index e579a0200543..676115283b5a 100755 --- a/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c +++ b/drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c @@ -242,7 +242,11 @@ int logging_init(phys_addr_t *buffer, u32 *size) wake_up_process(log_ctx.thread); /* Debugfs switch */ +#ifdef CONFIG_TRUSTONIC_TEE_DEBUG + log_ctx.enabled = true; +#else log_ctx.enabled = false; +#endif debugfs_create_bool("swd_debug", 0600, g_ctx.debug_dir, &log_ctx.enabled); return 0; -- 2.20.1