OSDN Git Service

msm: gsi: disable debug driver
authorYaroslav Furman <yaro330@gmail.com>
Thu, 5 Dec 2019 23:52:36 +0000 (02:52 +0300)
committer0ranko0P <ranko0p@outlook.com>
Tue, 24 Dec 2019 20:42:48 +0000 (04:42 +0800)
Signed-off-by: Yaroslav Furman <yaro330@gmail.com>
drivers/platform/msm/Kconfig
drivers/platform/msm/gsi/Makefile
drivers/platform/msm/gsi/gsi.c
drivers/platform/msm/gsi/gsi.h

index cb7105e..1228e04 100644 (file)
@@ -101,6 +101,11 @@ config GSI
          and CPUs over various types of interfaces such as MHI, xDCI,
          xHCI, GPI, WDI, Ethernet, etc.
 
+config GSI_DEBUG
+       bool "Debugging part of GSI core"
+       depends on GSI || DEBUG_FS
+       default n
+
 config IPA3
        tristate "IPA3 support"
        depends on GSI && NET
index b350a59..de19f82 100644 (file)
@@ -1 +1,2 @@
-obj-$(CONFIG_GSI) += gsi.o gsi_dbg.o
+obj-$(CONFIG_GSI) += gsi.o
+obj-$(CONFIG_GSI_DEBUG) += gsi_dbg.o
index 20351dd..235cff6 100644 (file)
 
 #define GSI_RESET_WA_MIN_SLEEP 1000
 #define GSI_RESET_WA_MAX_SLEEP 2000
+
+#ifndef CONFIG_GSI_DEBUG
+static inline void gsi_debugfs_init(void)
+{
+}
+#endif
+
 static const struct of_device_id msm_gsi_match[] = {
        { .compatible = "qcom,msm_gsi", },
        { },
index f53a4bd..e01f090 100644 (file)
@@ -290,7 +290,9 @@ enum gsi_generic_ee_cmd_return_code {
 };
 
 extern struct gsi_ctx *gsi_ctx;
+#ifdef CONFIG_GSI_DEBUG
 void gsi_debugfs_init(void);
+#endif
 uint16_t gsi_find_idx_from_addr(struct gsi_ring_ctx *ctx, uint64_t addr);
 void gsi_update_ch_dp_stats(struct gsi_chan_ctx *ctx, uint16_t used);