]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
thermal: intel: Select INT340X_THERMAL from INTEL_SOC_DTS_THERMAL
authorSlawomir Rosek <srosek@google.com>
Mon, 3 Nov 2025 16:25:15 +0000 (16:25 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 7 Nov 2025 19:45:37 +0000 (20:45 +0100)
The IRQ used by the Intel SoC DTS thermal device for critical
overheating notification is listed in _CRS of device INT3401 which
therefore needs to be enumerated for Intel SoC DTS thermal to work.

The enumeration happens by binding the int3401_thermal driver to the
INT3401 platform device. Thus CONFIG_INT340X_THERMAL is in fact
necessary for enumerating it, so checking CONFIG_INTEL_SOC_DTS_THERMAL
in int340x_thermal_handler_attach() is pointless and INT340X_THERMAL
may as well be selected by INTEL_SOC_DTS_THERMAL.

Signed-off-by: Slawomir Rosek <srosek@google.com>
[ rjw: New subject ]
Link: https://patch.msgid.link/20251103162516.2606158-2-srosek@google.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/dptf/int340x_thermal.c
drivers/thermal/intel/Kconfig

index a222df059a16eb1746da8bbc73ccfce27fcfc6c8..947fe50c2ef6051ffe0d9704c6fd8df59ece66b1 100644 (file)
 
 #include "../internal.h"
 
-#define INT3401_DEVICE 0X01
 static const struct acpi_device_id int340x_thermal_device_ids[] = {
        {"INT3400"},
-       {"INT3401", INT3401_DEVICE},
+       {"INT3401"},
        {"INT3402"},
        {"INT3403"},
        {"INT3404"},
@@ -76,10 +75,6 @@ static int int340x_thermal_handler_attach(struct acpi_device *adev,
 {
        if (IS_ENABLED(CONFIG_INT340X_THERMAL))
                acpi_create_platform_device(adev, NULL);
-       /* Intel SoC DTS thermal driver needs INT3401 to set IRQ descriptor */
-       else if (IS_ENABLED(CONFIG_INTEL_SOC_DTS_THERMAL) &&
-                id->driver_data == INT3401_DEVICE)
-               acpi_create_platform_device(adev, NULL);
        return 1;
 }
 
index e0268fac709314165832ed962c1c1c3851d4ff6b..347c59bc87d63958366d8493f5e6e1dec231bdaa 100644 (file)
@@ -44,7 +44,8 @@ config INTEL_SOC_DTS_IOSF_CORE
 
 config INTEL_SOC_DTS_THERMAL
        tristate "Intel SoCs DTS thermal driver"
-       depends on X86 && PCI && ACPI
+       depends on X86_64 && PCI && ACPI && NET
+       select INT340X_THERMAL
        select INTEL_SOC_DTS_IOSF_CORE
        help
          Enable this to register Intel SoCs (e.g. Bay Trail) platform digital