aboutsummaryrefslogtreecommitdiff
path: root/drivers/i2c/busses
diff options
context:
space:
mode:
authorGravatar Serge Semin <Sergey.Semin@baikalelectronics.ru> 2020-05-28 12:33:15 +0300
committerGravatar Wolfram Sang <wsa@kernel.org> 2020-05-30 11:33:35 +0200
commit68fe6cedf02e381da96dcf3cd0a53e4b938a0660 (patch)
treecf270c15c331e7b1c967bdc613c851289801f277 /drivers/i2c/busses
parenti2c: designware: Use `-y` to build multi-object modules (diff)
downloadlinux-68fe6cedf02e381da96dcf3cd0a53e4b938a0660.tar.gz
linux-68fe6cedf02e381da96dcf3cd0a53e4b938a0660.tar.bz2
linux-68fe6cedf02e381da96dcf3cd0a53e4b938a0660.zip
i2c: designware: slave: Set DW I2C core module dependency
DW APB I2C slave code in fact depends on the DW I2C driver core, but not on the platform code as it used to be before commit 90bc1ee6de9f ("i2c: designware: Allow slave mode for PCI enumerated devices"). Yes, the I2C slave interface is currently supported by both the platform and PCI versions of the IP core, but it still depends on the DW I2C core functionality and must be available only if the last one is enabled. So make sure the DW APB I2C slave config is only available if the I2C_DESIGNWARE_CORE config is enabled. Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r--drivers/i2c/busses/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 6bf68d52a65a..3d92b99a4154 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -529,6 +529,7 @@ config I2C_DESIGNWARE_CORE
config I2C_DESIGNWARE_SLAVE
bool "Synopsys DesignWare Slave"
+ depends on I2C_DESIGNWARE_CORE
select I2C_SLAVE
help
If you say yes to this option, support will be included for the