Skip to contentSkip to conversation

platform/mellanox: mlxreg-dpu: add I2C dependency

PATCH In review Arnd Bergmann 2 participants 2 messages May 2, 2025 – May 5, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/mellanox: mlxreg-dpu: add I2C dependency

From: Arnd Bergmann <[email protected]>

REGMAP_I2C cannot be selected unless I2C is already enabled:

WARNING: unmet direct dependencies detected for REGMAP_I2C
Depends on [n]: I2C [=n]
Selected by [y]:
- MLXREG_DPU [=y] && MELLANOX_PLATFORM [=y]

Fixes 3e75f2954116 ("platform/mellanox: mlxreg-dpu: Add initial support for Nvidia DPU")
---
 drivers/platform/mellanox/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/mellanox/Kconfig +1 -0
index 7204b10388ca..e3afbe62c7f6 100644
@@ -29,6 +29,7 @@ config MLX_PLATFORM
 
 config MLXREG_DPU
 	tristate "Nvidia Data Processor Unit platform driver support"
+	depends on I2C
 	select REGMAP_I2C
 	help
 	  This driver provides support for the Nvidia BF3 Data Processor Units,
Signature · 1 line
2.39.5
maintainer
#1 lore raw
Quoted 20 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

REGMAP_I2C cannot be selected unless I2C is already enabled:

WARNING: unmet direct dependencies detected for REGMAP_I2C
Depends on [n]: I2C [=n]
Selected by [y]:
- MLXREG_DPU [=y] && MELLANOX_PLATFORM [=y]

Fixes 3e75f2954116 ("platform/mellanox: mlxreg-dpu: Add initial support for Nvidia DPU")
---
 drivers/platform/mellanox/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/mellanox/Kconfig +0 -0
index 7204b10388ca..e3afbe62c7f6 100644

drivers/platform/mellanox/Kconfig config MLX_PLATFORM · line 35

Quoted 7 lines
drivers/platform/mellanox/Kconfig +1 -0
@@ -29,6 +29,7 @@ config MLX_PLATFORM
 
 config MLXREG_DPU
 	tristate "Nvidia Data Processor Unit platform driver support"
+	depends on I2C
 	select REGMAP_I2C
 	help
 	  This driver provides support for the Nvidia BF3 Data Processor Units,

This has been long fixed in the review-ilpo-next branch but LKP has been slow to build test it so the fix hasn't propagated into fox-next. I just pushed the changes into for-next as it seems LKP might not build that at all.

Signature · 1 line
 i.