]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
hwmon: (dell-smm) Add support for Dell OptiPlex 7040
authorArmin Wolf <W_Armin@gmx.de>
Wed, 17 Sep 2025 18:10:36 +0000 (20:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:08 +0000 (12:45 +0100)
[ Upstream commit 53d3bd48ef6ff1567a75ca77728968f5ab493cb4 ]

The Dell OptiPlex 7040 supports the legacy SMM interface for reading
sensors and performing fan control. Whitelist this machine so that
this driver loads automatically.

Closes: https://github.com/Wer-Wolf/i8kutils/issues/15
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20250917181036.10972-5-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/dell-smm-hwmon.c

index 785e7a07bb291abebaf641c0a877147ad4b7b0ff..51d0f5e88ebcff9d35fac61ed5c2de8a9a1d8cc3 100644 (file)
@@ -1016,6 +1016,13 @@ static const struct dmi_system_id i8k_dmi_table[] __initconst = {
                },
                .driver_data = (void *)&i8k_config_data[DELL_PRECISION_490],
        },
+       {
+               .ident = "Dell OptiPlex 7040",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+                       DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "OptiPlex 7040"),
+               },
+       },
        {
                .ident = "Dell Precision",
                .matches = {