]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mellanox: Relocate mlx-platform driver
authorVadim Pasternak <vadimp@nvidia.com>
Fri, 24 Jan 2025 17:26:19 +0000 (19:26 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 4 Feb 2025 11:03:10 +0000 (13:03 +0200)
Move 'mlx-platform' driver 'x86' to 'mellanox' folder.

Motivation to allow running it on systems with ARM architecture.

Since drivers/platform/x86/mlx-platform.c is rellocated to folder
drivers/platform/x86/, remove "MELLANOX PLATFORM DRIVER" item.
This driver will be located under "MELLANOX HARDWARE PLATFORM SUPPORT"
item.

Reviewed-by: Michael Shych <michaelsh@nvidia.com>
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20250124172632.22437-2-vadimp@nvidia.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
MAINTAINERS
drivers/platform/mellanox/Kconfig
drivers/platform/mellanox/Makefile
drivers/platform/mellanox/mlx-platform.c [moved from drivers/platform/x86/mlx-platform.c with 100% similarity]
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile

index 896a307fa06545e2861abe46ea7029f9b4d3628e..f7550dcced78a6a03e2e4e6547e5014770139cf9 100644 (file)
@@ -15098,12 +15098,6 @@ F:     Documentation/leds/leds-mlxcpld.rst
 F:     drivers/leds/leds-mlxcpld.c
 F:     drivers/leds/leds-mlxreg.c
 
-MELLANOX PLATFORM DRIVER
-M:     Vadim Pasternak <vadimp@nvidia.com>
-L:     platform-driver-x86@vger.kernel.org
-S:     Supported
-F:     drivers/platform/x86/mlx-platform.c
-
 MEMBARRIER SUPPORT
 M:     Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
 M:     "Paul E. McKenney" <paulmck@kernel.org>
index f7dfa0e785fd6e0cc603b2a9a12b848e967a0c1d..aa760f064a17c6e2f14338cc6e2ccbf4cb3ba5ff 100644 (file)
@@ -14,6 +14,19 @@ menuconfig MELLANOX_PLATFORM
 
 if MELLANOX_PLATFORM
 
+config MLX_PLATFORM
+       tristate "Mellanox Technologies platform support"
+       depends on ACPI && I2C && PCI
+       select REGMAP
+       help
+         This option enables system support for the Mellanox Technologies
+         platform. The Mellanox systems provide data center networking
+         solutions based on Virtual Protocol Interconnect (VPI) technology
+         enable seamless connectivity to 56/100Gb/s InfiniBand or 10/40/56GbE
+         connection.
+
+         If you have a Mellanox system, say Y or M here.
+
 config MLXREG_HOTPLUG
        tristate "Mellanox platform hotplug driver support"
        depends on HWMON
index 04703c0416b18cb3fb2b4f9748e134c2ea3155af..ba56485cbe8ce44952f1aa3f00cc20ede2dad9bc 100644 (file)
@@ -3,6 +3,7 @@
 # Makefile for linux/drivers/platform/mellanox
 # Mellanox Platform-Specific Drivers
 #
+obj-$(CONFIG_MLX_PLATFORM)     += mlx-platform.o
 obj-$(CONFIG_MLXBF_BOOTCTL)    += mlxbf-bootctl.o
 obj-$(CONFIG_MLXBF_PMC)                += mlxbf-pmc.o
 obj-$(CONFIG_MLXBF_TMFIFO)     += mlxbf-tmfifo.o
index 0258dd879d64be389f4dd9bc309fe089f23cc798..fab35030fe37992d277a8eb07496b9c009ff9287 100644 (file)
@@ -1012,19 +1012,6 @@ config SERIAL_MULTI_INSTANTIATE
          To compile this driver as a module, choose M here: the module
          will be called serial-multi-instantiate.
 
-config MLX_PLATFORM
-       tristate "Mellanox Technologies platform support"
-       depends on ACPI && I2C && PCI
-       select REGMAP
-       help
-         This option enables system support for the Mellanox Technologies
-         platform. The Mellanox systems provide data center networking
-         solutions based on Virtual Protocol Interconnect (VPI) technology
-         enable seamless connectivity to 56/100Gb/s InfiniBand or 10/40/56GbE
-         connection.
-
-         If you have a Mellanox system, say Y or M here.
-
 config TOUCHSCREEN_DMI
        bool "DMI based touchscreen configuration info"
        depends on ACPI && DMI && I2C=y && TOUCHSCREEN_SILEAD
index e1b142947067475ee5472400a5a1cd20d79e12bd..8849c0a364195d85a0f103c661ae667e170139b6 100644 (file)
@@ -122,7 +122,6 @@ obj-$(CONFIG_TOPSTAR_LAPTOP)        += topstar-laptop.o
 # Platform drivers
 obj-$(CONFIG_FW_ATTR_CLASS)            += firmware_attributes_class.o
 obj-$(CONFIG_SERIAL_MULTI_INSTANTIATE) += serial-multi-instantiate.o
-obj-$(CONFIG_MLX_PLATFORM)             += mlx-platform.o
 obj-$(CONFIG_TOUCHSCREEN_DMI)          += touchscreen_dmi.o
 obj-$(CONFIG_WIRELESS_HOTKEY)          += wireless-hotkey.o
 obj-$(CONFIG_X86_ANDROID_TABLETS)      += x86-android-tablets/