Skip to content

Commit b2cacc2

Browse files
geertuwsakernel
authored andcommitted
i2c: I2C_MLXCPLD on ARM64 should depend on ACPI
The "i2c_mlxcpld" platform device is only instantiated on X86 systems (through drivers/platform/x86/mlx-platform.c), or on ARM64 systems with ACPI (through drivers/platform/mellanox/nvsw-sn2201.c). Hence further restrict the dependency on ARM64 to ACPI, to prevent asking the user about this driver when configuring an ARM64 kernel without ACPI support. While at it, document in the Kconfig help text that the driver supports ARM64/ACPI based systems, too. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Vadim Pasternak <vadimp@nvidia.com> Acked-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 24dc13f commit b2cacc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/busses/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,10 +1384,10 @@ config I2C_ICY
13841384

13851385
config I2C_MLXCPLD
13861386
tristate "Mellanox I2C driver"
1387-
depends on X86_64 || ARM64 || COMPILE_TEST
1387+
depends on X86_64 || (ARM64 && ACPI) || COMPILE_TEST
13881388
help
13891389
This exposes the Mellanox platform I2C busses to the linux I2C layer
1390-
for X86 based systems.
1390+
for X86 and ARM64/ACPI based systems.
13911391
Controller is implemented as CPLD logic.
13921392

13931393
This driver can also be built as a module. If so, the module will be

0 commit comments

Comments
 (0)