From 832acae949e8cebf4d5b94edbd837a2d20da7f41 Mon Sep 17 00:00:00 2001 From: Guru Das Srinagesh Date: Tue, 3 Mar 2020 19:09:40 -0800 Subject: [PATCH] soc: Kconfig: Add QTI_PMIC_GLINK_CLIENT_DEBUG This option enables the generation of debugfs files in PMIC GLINK client drivers that are strictly meant for internal debugging only. Change-Id: I0c0c27b38754dcc694a4b98d6cd29e4a78cd7426 Signed-off-by: Guru Das Srinagesh --- drivers/soc/qcom/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index c918dfcdec9a..12149ecc39d4 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -575,6 +575,16 @@ config QTI_PMIC_GLINK charging and gauging. This enables clients to read and write battery charging parameters. +config QTI_PMIC_GLINK_CLIENT_DEBUG + depends on QTI_PMIC_GLINK && DEBUG_FS + bool "Enable debugfs features in PMIC GLINK client drivers" + help + This option enables the generation of debugfs files in PMIC GLINK + client drivers that are strictly meant for internal debugging only. + Writing to these debug files changes key physical parameters of a + system, which may lead to instability. Therefore, this option should + never be enabled on production devices. + config QTI_BATTERY_GLINK_DEBUG tristate "Enable support for QTI battery glink debug driver" depends on QTI_PMIC_GLINK