Skip to contentSkip to conversation

mlxbf-bootctl: add NET dependency into Kconfig

PATCH In review David Thompson 3 participants 3 messages Sep 5, 2023 – Sep 11, 2023

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

PATCH 1/1 mlxbf-bootctl: add NET dependency into Kconfig

The latest version of the mlxbf_bootctl driver utilizes "sysfs_format_mac", and this API is only available if NET is defined in the kernel configuration. This patch changes the mlxbf_bootctl Kconfig to depend on NET.

---
 drivers/platform/mellanox/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/mellanox/Kconfig +1 -0
index 382793e73a60..e52aea996ca5 100644
@@ -60,6 +60,7 @@ config MLXBF_BOOTCTL
 	tristate "Mellanox BlueField Firmware Boot Control driver"
 	depends on ARM64
 	depends on ACPI
+	depends on NET
 	help
 	  The Mellanox BlueField firmware implements functionality to
 	  request swapping the primary and alternate eMMC boot partition,
Signature · 1 line
2.30.1
#1 lore raw

Hi,

Quoted 6 lines · David Thompson

The latest version of the mlxbf_bootctl driver utilizes "sysfs_format_mac", and this API is only available if NET is defined in the kernel configuration. This patch changes the mlxbf_bootctl Kconfig to depend on NET.

Also

Quoted 11 lines
---
 drivers/platform/mellanox/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/mellanox/Kconfig +0 -0
index 382793e73a60..e52aea996ca5 100644

drivers/platform/mellanox/Kconfig config MLXBF_BOOTCTL · line 66

Quoted 7 lines
drivers/platform/mellanox/Kconfig +1 -0
@@ -60,6 +60,7 @@ config MLXBF_BOOTCTL
 	tristate "Mellanox BlueField Firmware Boot Control driver"
 	depends on ARM64
 	depends on ACPI
+	depends on NET
 	help
 	  The Mellanox BlueField firmware implements functionality to
 	  request swapping the primary and alternate eMMC boot partition,

I'm sure that this will fix the build problem, but I don't see this being a network driver. To me it looks like some management s/w that can run independently of networking software.
It just wants to show/store a MAC address -- no networking. FWIW.

Signature · 1 line
~Randy
#2 lore raw
In reply to David Thompson

Hi,

Quoted 8 lines · David Thompson

The latest version of the mlxbf_bootctl driver utilizes "sysfs_format_mac", and this API is only available if NET is defined in the kernel configuration. This patch changes the mlxbf_bootctl Kconfig to depend on NET.

Thank you for your patch, I've applied this patch to my fixes branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=fixes

Note it will show up in my fixes branch once I've pushed my local branch there, which might take a while.

I will include this patch in my next fixes pull-req to Linus for the current kernel development cycle.

Regards,

Hans

Quoted 16 lines
---
 drivers/platform/mellanox/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/mellanox/Kconfig +1 -0
index 382793e73a60..e52aea996ca5 100644
@@ -60,6 +60,7 @@ config MLXBF_BOOTCTL
 	tristate "Mellanox BlueField Firmware Boot Control driver"
 	depends on ARM64
 	depends on ACPI
+	depends on NET
 	help
 	  The Mellanox BlueField firmware implements functionality to
 	  request swapping the primary and alternate eMMC boot partition,