]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: designware: slave: Set DW I2C core module dependency
authorBaikal Electronics <support@baikalelectronics.ru>
Thu, 28 May 2020 09:33:15 +0000 (12:33 +0300)
committerWolfram Sang <wsa@kernel.org>
Sat, 30 May 2020 09:33:35 +0000 (11:33 +0200)
commita9b7d1e72264a469112e5ffecff5eeb056b67cc3
treecf270c15c331e7b1c967bdc613c851289801f277
parent9996bedd52279836c2d733d15d39720db5accd64
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 bf6f546b68f0 ("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>
drivers/i2c/busses/Kconfig