diff --git a/arch/arm64/configs/vendor/ext_config/factory-bengal.config b/arch/arm64/configs/vendor/ext_config/factory-bengal.config index b79773434dac..2b5134990b27 100644 --- a/arch/arm64/configs/vendor/ext_config/factory-bengal.config +++ b/arch/arm64/configs/vendor/ext_config/factory-bengal.config @@ -16,3 +16,5 @@ #CONFIG_DEVMEM is not set CONFIG_REGMAP_ALLOW_WRITE_DEBUGFS=y CONFIG_SUSPEND_DEBUG=y +CONFIG_QCOM_I2C_NACK_ERR_WA_FAC=y + diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 214f4c6b12d0..4e20faaeba3a 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -150,6 +150,15 @@ config QCOM_I2C_NACK_ERR_WA debug messages to the system log. Select this if you are having a problem with I2C support and want to see more of what is going on. +config QCOM_I2C_NACK_ERR_WA_FAC + bool "I2C Bus nack err for fac" + depends on QCOM_I2C_NACK_ERR_WA + default 'n' + help + Say Y here if you want the I2C bus drivers to produce a bunch of + debug messages to the system log. Select this if you are having + a problem with I2C support and want to see more of what is going + on. endif # I2C endmenu diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile index 5aecae631020..c34b3042c70a 100644 --- a/drivers/i2c/Makefile +++ b/drivers/i2c/Makefile @@ -18,6 +18,8 @@ obj-$(CONFIG_I2C_STUB) += i2c-stub.o obj-$(CONFIG_I2C_SLAVE_EEPROM) += i2c-slave-eeprom.o ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG -ifeq ($(CONFIG_QCOM_I2C_NACK_ERR_WA), y) + +ifeq ($(CONFIG_QCOM_I2C_NACK_ERR_WA_FAC), y) subdir-ccflags-y += -DQCOM_I2C_NACK_ERR_WA endif +