Skip to contentSkip to conversation

gpio: sodaville: allow COMPILE_TEST builds

PATCH New Rosen Penev 1 participant 1 message May 12 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gpio: sodaville: allow COMPILE_TEST builds

The Intel Sodaville GPIO driver uses PCI/MMIO and generic GPIO helpers, and builds outside X86.

Tested with:
make LLVM=1 ARCH=loongarch drivers/gpio/gpio-sodaville.o

Assisted-by Codex:GPT-5.5

---
v2: just add COMPILE_TEST. Moving outside of menuconfig is wrong.

 drivers/gpio/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpio/Kconfig +2 -1
index c9a0d53da6d8..92281c14653b 100644
@@ -1912,7 +1912,8 @@ config GPIO_RDC321X
 
 config GPIO_SODAVILLE
 	bool "Intel Sodaville GPIO support"
-	depends on X86 && OF
+	depends on X86 || COMPILE_TEST
+	depends on OF
 	select GPIO_GENERIC
 	select GENERIC_IRQ_CHIP
 	help

--
2.54.0