]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
i2c: tegra: enable compile testing on all archs
authorJohan Hovold <johan@kernel.org>
Mon, 9 Mar 2026 08:12:59 +0000 (09:12 +0100)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 30 Mar 2026 13:15:15 +0000 (15:15 +0200)
Commit 4a2d5f663dab ("i2c: Enable compile testing for more drivers")
enabled compile testing of the Tegra i2c driver only for architectures
that explicitly provide readsX() and writesX().

This limitation appears to have been too restrictive since the generic
implementation of these primitives added by commit 9ab3a7a0d2b4
("asm-generic/io.h: Implement generic {read,write}s*()") predates the
commit in question.

Allow compile testing of the driver on all architectures.

Cc: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/busses/Kconfig

index e11d50750e635de43a63ac9b284eaa4b67d169d5..33b06fa70f91bafd205f7c552347ad7d04df3911 100644 (file)
@@ -1211,8 +1211,7 @@ config I2C_SYNQUACER
 
 config I2C_TEGRA
        tristate "NVIDIA Tegra internal I2C controller"
-       depends on ARCH_TEGRA || (COMPILE_TEST && (ARC || ARM || ARM64 || M68K || RISCV || SUPERH || SPARC))
-       # COMPILE_TEST needs architectures with readsX()/writesX() primitives
+       depends on ARCH_TEGRA || COMPILE_TEST
        help
          If you say yes to this option, support will be included for the
          I2C controller embedded in NVIDIA Tegra SOCs