X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH] platform/mellanox: MLXREG_DPU depends on I2C
@ 2025-05-02  0:16 Randy Dunlap
  2025-05-02 12:36 ` Ilpo Järvinen
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2025-05-02  0:16 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Vadim Pasternak, Ilpo Järvinen, Hans de Goede,
	platform-driver-x86

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

Without the dependency, REGMAP_I2C=y since MLXREG_DPU=y.
Since CONFIG_I2C=m, this causes many (> 230) unmet dependency warnings.
E.g.:
  Selected by [m]:
  - EEPROM_AT24 [=m] && I2C [=m] && SYSFS [=y]
  - SERIAL_MAX310X [=m] && TTY [=y] && HAS_IOMEM [=y] && SPI_MASTER [=y] && I2C [=m]
  - PINCTRL_AW9523 [=m] && PINCTRL [=y] && OF [=y] && I2C [=m]
  - PINCTRL_CY8C95X0 [=m] && PINCTRL [=y] && I2C [=m]
  - GPIO_FXL6408 [=m] && GPIOLIB [=y] && I2C [=m]
  - GPIO_DS4520 [=m] && GPIOLIB [=y] && I2C [=m]
  - GPIO_PCA953X [=m] && GPIOLIB [=y] && I2C [=m]
  - IP5XXX_POWER [=m] && POWER_SUPPLY [=y] && I2C [=m]
  - BATTERY_CW2015 [=m] && POWER_SUPPLY [=y] && I2C [=m]
  - CHARGER_SBS [=m] && POWER_SUPPLY [=y] && I2C [=m]

Fixes: 3e75f2954116 ("platform/mellanox: mlxreg-dpu: Add initial support for Nvidia DPU")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vadim Pasternak <vadimp@nvidia.com>
Cc: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: platform-driver-x86@vger.kernel.org
---
 drivers/platform/mellanox/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20250501.orig/drivers/platform/mellanox/Kconfig
+++ linux-next-20250501/drivers/platform/mellanox/Kconfig
@@ -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,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] platform/mellanox: MLXREG_DPU depends on I2C
  2025-05-02  0:16 [PATCH] platform/mellanox: MLXREG_DPU depends on I2C Randy Dunlap
@ 2025-05-02 12:36 ` Ilpo Järvinen
  0 siblings, 0 replies; 2+ messages in thread
From: Ilpo Järvinen @ 2025-05-02 12:36 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: LKML, Vadim Pasternak, Hans de Goede, platform-driver-x86

[-- Attachment #1: Type: text/plain, Size: 1960 bytes --]

On Thu, 1 May 2025, Randy Dunlap wrote:

> WARNING: unmet direct dependencies detected for REGMAP_I2C
>   Depends on [m]: I2C [=m]
>   Selected by [y]:
>   - MLXREG_DPU [=y] && MELLANOX_PLATFORM [=y]
> 
> Without the dependency, REGMAP_I2C=y since MLXREG_DPU=y.
> Since CONFIG_I2C=m, this causes many (> 230) unmet dependency warnings.
> E.g.:
>   Selected by [m]:
>   - EEPROM_AT24 [=m] && I2C [=m] && SYSFS [=y]
>   - SERIAL_MAX310X [=m] && TTY [=y] && HAS_IOMEM [=y] && SPI_MASTER [=y] && I2C [=m]
>   - PINCTRL_AW9523 [=m] && PINCTRL [=y] && OF [=y] && I2C [=m]
>   - PINCTRL_CY8C95X0 [=m] && PINCTRL [=y] && I2C [=m]
>   - GPIO_FXL6408 [=m] && GPIOLIB [=y] && I2C [=m]
>   - GPIO_DS4520 [=m] && GPIOLIB [=y] && I2C [=m]
>   - GPIO_PCA953X [=m] && GPIOLIB [=y] && I2C [=m]
>   - IP5XXX_POWER [=m] && POWER_SUPPLY [=y] && I2C [=m]
>   - BATTERY_CW2015 [=m] && POWER_SUPPLY [=y] && I2C [=m]
>   - CHARGER_SBS [=m] && POWER_SUPPLY [=y] && I2C [=m]
> 
> Fixes: 3e75f2954116 ("platform/mellanox: mlxreg-dpu: Add initial support for Nvidia DPU")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Vadim Pasternak <vadimp@nvidia.com>
> Cc: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
> Cc: Hans de Goede <hdegoede@redhat.com>
> Cc: platform-driver-x86@vger.kernel.org
> ---
>  drivers/platform/mellanox/Kconfig |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- linux-next-20250501.orig/drivers/platform/mellanox/Kconfig
> +++ linux-next-20250501/drivers/platform/mellanox/Kconfig
> @@ -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,
> 

Thanks for the patch but the review-ilpo-next branch already has this 
fixed, just waiting for lkp to build test it until it propagates into 
for-next.

-- 
 i.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-05-02 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-02  0:16 [PATCH] platform/mellanox: MLXREG_DPU depends on I2C Randy Dunlap
2025-05-02 12:36 ` Ilpo Järvinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox