Skip to contentSkip to conversation

i2c: hydra: Enable compile testing

PATCH New Rosen Penev 1 participant 1 message May 18 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: hydra: Enable compile testing

Allow the Apple Hydra Mac I/O I2C controller driver to be built when compile testing on PowerPC.

Keep the PCI dependency separate so the driver still only builds with PCI support enabled.

Assisted-by Codex:GPT-5.5
---
 drivers/i2c/busses/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/i2c/busses/Kconfig +2 -1
index c2d378e9a1b4..f7d15fa9580e 100644
@@ -370,7 +370,8 @@ comment "Mac SMBus host controller drivers"
 
 config I2C_HYDRA
 	tristate "CHRP Apple Hydra Mac I/O I2C interface"
-	depends on PCI && PPC_CHRP
+	depends on PCI
+	depends on PPC_CHRP || (PPC && COMPILE_TEST)
 	select I2C_ALGOBIT
 	help
 	  This supports the use of the I2C interface in the Apple Hydra Mac
Signature · 1 line
2.54.0