OSDN Git Service

i2c: Disable I2C_APPLE when I2C_PASEMI is a builtin
authorBenjamin Gray <bgray@linux.ibm.com>
Mon, 27 Feb 2023 23:33:17 +0000 (10:33 +1100)
committerWolfram Sang <wsa@kernel.org>
Fri, 3 Mar 2023 19:55:15 +0000 (20:55 +0100)
commita76d19e6acb1ef16561b0682cd1a566463fa3d98
treed045bc62b812ac740638145726182c110abadc31
parent0a3f9a6b0265b64c02226fcabb5e9a958307913b
i2c: Disable I2C_APPLE when I2C_PASEMI is a builtin

The ppc64le_allmodconfig sets I2C_PASEMI=y and leaves COMPILE_TEST to
default to y and I2C_APPLE to default to m, running into a known
incompatible configuration that breaks the build [1]. Specifically,
a common dependency (i2c-pasemi-core.o in this case) cannot be used by
both builtin and module consumers.

Disable I2C_APPLE when I2C_PASEMI is a builtin to prevent this.

[1]: https://lore.kernel.org/all/202112061809.XT99aPrf-lkp@intel.com

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/Kconfig