From nobody Thu Oct 2 13:07:21 2025 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D77F437C102 for ; Wed, 17 Sep 2025 12:07:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758110856; cv=none; b=c6Vclwd9IXRWLBY0FzmMMLE5+2CDVYBHdWSzYqo+/xL50RZCAp3X8OaacR9THSaLvro95hUjqJSC8HdbuEpkJUKrBlNxw32asnRrPllZ6uXjTL0fXAdqYRXNEo1d4gau9L+lwL35y3xKyDkMlTnBb+XUTUlJj4EASMxQtD0okJY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758110856; c=relaxed/simple; bh=CfXS5/PPeqiRHOfIV/RY4aKkXODckn9t5qURcuM16r0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=ShHrV3CQ/2A/TWsk/aOmjP/dE2z5Qd2U3k3x+U+VUKRD6Gx/gMlsypMGL05nj6Tcc5Vap/RGGDuNkEAnvng/peV+oyCIOplXp7NcgHFMPl2I8R6t3/uDdptMhEIuk3sceEeQcRcpwVcCiMQ0DNu1XuO07QhAYe0Cf/bK3P2raiI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--srosek.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=W6qE10gz; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--srosek.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="W6qE10gz" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-45f28552927so19463405e9.2 for ; Wed, 17 Sep 2025 05:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1758110853; x=1758715653; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=SXPpYw5PptfhxuGeyMlPO4iaL9Igmx+1S+SUZwA7GbM=; b=W6qE10gzXtVTlHE7Kgr0vxxauDXDlrd5kZ+zAg8KgvTVzLo15ZY/O1YuSdXeSNckGd epX67hBza6sHzvUOl8yMKucNdfxMcLOYnZ5GDbQH1zQxzjAgZHG7iZKjlkIg1Y71fkHO WmFGGxu+BhrOvlCx3UGAxinlbg5vnY4Vu49kJbR6KIIzeczBlPrM2hYSaUjkA/8dBlWm lcP1xiD9a5wK8466Pcyh8fHb7IS8UsUe8MQta8cKvZa2aRgfLA7YJKEFUg3cFgSF6Lr4 WKNv4UXtjyIsx0e2CWb/BMruxdfl8eViWsnoIHgWNaeWDtbRz/bY/Q36kZAUgjkGaVv3 Oskw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758110853; x=1758715653; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SXPpYw5PptfhxuGeyMlPO4iaL9Igmx+1S+SUZwA7GbM=; b=af62Xg7NO9PBS97KcgRMMqQ5Z9n8oSIhMlUJcXIf/a/IKlXBLtcRmm3p7pudQ+1Zhn nzQuqAwAt7KdYO/WLj5UgPZD/T9n7y0IGitpFPbvVPpd6XZQxm9mAiAAjb43cm8GtN/+ Lkr3p2WKbrsiBbukvGKuym9hXMFxMzQktAnLxX8O47VKo+LN9UW/OLpkefqBloUBWFoZ s8vnHPpCjpp+dE26yP9fp0lji73EdqmtrPHfe7kdIFeEpvuhYdOs3FWib0ViDRX0lbHH JaDHpl2jNS/QXTIhYikk+7uk7Anw8jR2JghejrpVw4yhtfq9cKuUpp450VA3f7pMqe8J uMTg== X-Forwarded-Encrypted: i=1; AJvYcCUF/62FICr9m+NdaVdZw75Czpzdc6S/ZF/VrOgeGn3v0tAMSzxKNHiEpbTL+Z3+FE+vphr4PY62+lpsLFs=@vger.kernel.org X-Gm-Message-State: AOJu0Ywei9AZ5TZC7c5crWowhJOBk5/NKUJ7m910v6Olq5725KrweIaG DYBAoLMHYFyKm/+DEiYxlNBv5kT2P5SX12LXEyMnCn1sl4e4l8GPySIsZeGV6zevqwOekNCYnhi Lbh3glQ== X-Google-Smtp-Source: AGHT+IG5EYuiZGTb0cN7pl1n8KbdAeBSylPX3GcroguKVU2xV9KwaI/F70l4wkEMjhLkEIA7QuUMhQPK0SM= X-Received: from wmsr5.prod.google.com ([2002:a05:600c:8b05:b0:459:7c15:15b9]) (user=srosek job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:3b09:b0:45f:27a3:6e0e with SMTP id 5b1f17b1804b1-46202de0b19mr20212145e9.14.1758110853279; Wed, 17 Sep 2025 05:07:33 -0700 (PDT) Date: Wed, 17 Sep 2025 12:07:14 +0000 In-Reply-To: <20250917120719.2390847-1-srosek@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250917120719.2390847-1-srosek@google.com> X-Mailer: git-send-email 2.51.0.384.g4c02a37b29-goog Message-ID: <20250917120719.2390847-2-srosek@google.com> Subject: [PATCH v2 1/6] ACPI: DPTF: Ignore SoC DTS thermal while scanning From: Slawomir Rosek To: "Rafael J . Wysocki" , Alex Hung , Hans de Goede , Ilpo Jarvinen , AceLan Kao , Daniel Lezcano Cc: Greg Kroah-Hartman , Zhang Rui , Srinivas Pandruvada , Tomasz Nowicki , Stanislaw Kardach , Michal Krawczyk , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org, Slawomir Rosek Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The Intel SoC DTS thermal driver on Baytrail platform uses IRQ 86 for critical overheating notification. The IRQ 86 is described in the _CRS control method of INT3401 device, thus Intel SoC DTS thermal driver requires INT3401 device to be enumerated. Since dependency on INT3401 device is unrelated to DPTF the IS_ENABLE() macro is removed from ACPI DPTF INT340X scan handler, instead Kconfig is updated to ensure proper enumeration of INT3401 device. Fixes: 014d9d5d0cc1 ("ACPI/int340x_thermal: enumerate INT3401 for Intel SoC= DTS thermal driver") Signed-off-by: Slawomir Rosek --- drivers/acpi/dptf/int340x_thermal.c | 7 +------ drivers/thermal/intel/Kconfig | 1 + 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/dptf/int340x_thermal.c b/drivers/acpi/dptf/int340= x_thermal.c index a222df059a16..947fe50c2ef6 100644 --- a/drivers/acpi/dptf/int340x_thermal.c +++ b/drivers/acpi/dptf/int340x_thermal.c @@ -11,10 +11,9 @@ =20 #include "../internal.h" =20 -#define INT3401_DEVICE 0X01 static const struct acpi_device_id int340x_thermal_device_ids[] =3D { {"INT3400"}, - {"INT3401", INT3401_DEVICE}, + {"INT3401"}, {"INT3402"}, {"INT3403"}, {"INT3404"}, @@ -76,10 +75,6 @@ static int int340x_thermal_handler_attach(struct acpi_de= vice *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 =3D=3D INT3401_DEVICE) - acpi_create_platform_device(adev, NULL); return 1; } =20 diff --git a/drivers/thermal/intel/Kconfig b/drivers/thermal/intel/Kconfig index e0268fac7093..47950859b790 100644 --- a/drivers/thermal/intel/Kconfig +++ b/drivers/thermal/intel/Kconfig @@ -45,6 +45,7 @@ config INTEL_SOC_DTS_IOSF_CORE config INTEL_SOC_DTS_THERMAL tristate "Intel SoCs DTS thermal driver" depends on X86 && PCI && ACPI + select INT340X_THERMAL select INTEL_SOC_DTS_IOSF_CORE help Enable this to register Intel SoCs (e.g. Bay Trail) platform digital --=20 2.51.0.384.g4c02a37b29-goog