From: zhangh12 Date: Thu, 31 Jan 2019 10:13:52 +0000 (+0800) Subject: config: enable tee debug on debug build. X-Git-Tag: MMI-QSAS30.62-33-3~252 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=94e27e2c2bca45b961f0d8f037c04f769d5a122c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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;