From nobody Thu Oct 2 15:33:22 2025 Received: from mail-ed1-f74.google.com (mail-ed1-f74.google.com [209.85.208.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 856E831076B for ; Thu, 2 Oct 2025 11:34:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759404857; cv=none; b=s8YanCqOzK+prazui5rVqO3++EulnpcpeYoO/7x9ramikCHsp8NoaG3P5aMmaNXG7qMIvwaShOVEcBJnKBuvauoSFrWM43OsA6xkFD+QSlkpjH8kM2badmczVkZu/pDyQR42OpvBzm6xagP1guPj67NI42xBeXvqKt/gJQSXQUs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759404857; c=relaxed/simple; bh=4OP6QBdFKr1574GZhyc2cb1Lv+GX8ez8QVbJWQWOSGk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=d7J5T1RlVt2NY+6Gk517IoOlZfaNArdPCzM5lwZk+AZWzCcUzPQxAhF7OHxK3XOzo3wGrxdx0nLClxS/LJFe0oPyQpaE/Xd5OQLcml3RVAseHiecxOW7/D/JhgNRtNvDUHUwJWbxz21Wi4uh/xeJNLvu/yCwae1ceha1xG5BCuk= 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=yl9o4QIS; arc=none smtp.client-ip=209.85.208.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="yl9o4QIS" Received: by mail-ed1-f74.google.com with SMTP id 4fb4d7f45d1cf-62fcb646334so1038448a12.2 for ; Thu, 02 Oct 2025 04:34:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1759404854; x=1760009654; 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=kgpUJcZIT53UUziBi2oBrvyEh4rGfYabLqvWzsqp90A=; b=yl9o4QISp/HuDiOBl78uizac9ONNsWBTwjSk7NgXErl4BxfQtpffv2wI5ED6LimNq3 z0X0q86LNIKfevGBCGt7SFDuC16e3cZLAtE+5GaMd/v3zNMsyCW8u6NKaf+LdCbu5L+b 4b44NeULuk2NrIXQ91iltZaVY6OOu43wvq2h51yFjetvU02ScTDEGf2e8etZFoXj3r6T Xolj7ywxVMmJ7wOS8lB5uXuZTGhSQr8OcXG2i8jz9niRHHC42ygPfBW51IAObukXKfRe Hnc/rPpjaGrwWNQlCnlgGSfq+wly/kJMmJgen3FPvQ6bzO9y0dl1AoQd+ZY3cSCKZfwm mfkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759404854; x=1760009654; 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=kgpUJcZIT53UUziBi2oBrvyEh4rGfYabLqvWzsqp90A=; b=PMCLXzVcjRMZafna1VhDI+HjbDpZ3biiUtLLdABHRBqcP0cX1j7g/G1yW0jtp1Nysi gm8jszfZV1djK6QO4qqshB26NQQpR8GanbnL0zvB0DMtcV19OMnZ35wqAwD6saqddKje 9885uMjUXy9pBK3HDFvBm8U1FiWuI3F9VG8NirFB2X/M1Ypa4AcnHvnBSqFy8DSpng1q BbI/4ISQ1NRbSrKpu9rXdb9VPTpsqKeP6hDIeIjgjrGGu0qkWsVuASxYAUGTVLkJLxMw kvTg0T3w7IBJdOU/VskQ0nIIrBopuOpgqNAaBz7p6M66udHuFyX0xdc4w7g0QZAvZLRC MR+g== X-Forwarded-Encrypted: i=1; AJvYcCVm9AvPLv7D+Pn49+0IqvKtBhw++L2vvK8umh7UXSaN+JlriApswx3xuB661KIhPu9tMuYTKFtm0W+JWC0=@vger.kernel.org X-Gm-Message-State: AOJu0YxYH49M87FyQ5CE80+KPvSL7eNQr+saSCNeyfWxSItkDWAqKvol Sy7E82NAsVynT0vCVFhwgtTQ1dnyN2CyJOmu6Y1sIN3XXLFZ6Quu/AjIAqLawN8EX3LfP6Mm8HS fTaJrcA== X-Google-Smtp-Source: AGHT+IEViJurBgSj1HUwewxJ2lufwYxLh7QiIceZMFqK3KJHnZaS1MP+gTNpl0gquADVo4qzM8B94yHCRDA= X-Received: from edqm3.prod.google.com ([2002:aa7:c483:0:b0:636:4ff7:efe]) (user=srosek job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6402:909:b0:637:ec7d:4d6c with SMTP id 4fb4d7f45d1cf-637ec7d4f8cmr859439a12.11.1759404853757; Thu, 02 Oct 2025 04:34:13 -0700 (PDT) Date: Thu, 2 Oct 2025 11:34:04 +0000 In-Reply-To: <20251002113404.3117429-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: <20251002113404.3117429-1-srosek@google.com> X-Mailer: git-send-email 2.51.0.618.g983fd99d29-goog Message-ID: <20251002113404.3117429-7-srosek@google.com> Subject: [PATCH v3 6/6] ACPI: DPTF: Move INT340X enumeration to modules 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" Move enumeration of INT340X ACPI device objects on the platform bus from DPTF core to thermal drivers using ACPI platform core methods Signed-off-by: Slawomir Rosek --- drivers/acpi/dptf/dptf_pch_fivr.c | 2 +- drivers/acpi/dptf/dptf_power.c | 2 +- drivers/acpi/dptf/int340x_thermal.c | 7 +++++-- drivers/acpi/fan_core.c | 2 +- drivers/thermal/intel/int340x_thermal/int3400_thermal.c | 2 +- drivers/thermal/intel/int340x_thermal/int3401_thermal.c | 2 +- drivers/thermal/intel/int340x_thermal/int3402_thermal.c | 2 +- drivers/thermal/intel/int340x_thermal/int3403_thermal.c | 2 +- drivers/thermal/intel/int340x_thermal/int3406_thermal.c | 2 +- 9 files changed, 13 insertions(+), 10 deletions(-) diff --git a/drivers/acpi/dptf/dptf_pch_fivr.c b/drivers/acpi/dptf/dptf_pch= _fivr.c index cb81636a5d63..f3cd52c89e8d 100644 --- a/drivers/acpi/dptf/dptf_pch_fivr.c +++ b/drivers/acpi/dptf/dptf_pch_fivr.c @@ -162,7 +162,7 @@ static struct platform_driver pch_fivr_driver =3D { }, }; =20 -module_platform_driver(pch_fivr_driver); +module_acpi_platform_driver(pch_fivr_driver); =20 MODULE_AUTHOR("Srinivas Pandruvada "); MODULE_LICENSE("GPL v2"); diff --git a/drivers/acpi/dptf/dptf_power.c b/drivers/acpi/dptf/dptf_power.c index d7c59f016083..b85e876b2e85 100644 --- a/drivers/acpi/dptf/dptf_power.c +++ b/drivers/acpi/dptf/dptf_power.c @@ -239,7 +239,7 @@ static struct platform_driver dptf_power_driver =3D { }, }; =20 -module_platform_driver(dptf_power_driver); +module_acpi_platform_driver(dptf_power_driver); =20 MODULE_AUTHOR("Srinivas Pandruvada "); MODULE_LICENSE("GPL v2"); diff --git a/drivers/acpi/dptf/int340x_thermal.c b/drivers/acpi/dptf/int340= x_thermal.c index 7d1308b1f513..b2be3a8df9ac 100644 --- a/drivers/acpi/dptf/int340x_thermal.c +++ b/drivers/acpi/dptf/int340x_thermal.c @@ -27,8 +27,11 @@ static const struct acpi_device_id int340x_thermal_devic= e_ids[] =3D { static int int340x_thermal_handler_attach(struct acpi_device *adev, const struct acpi_device_id *id) { - if (IS_ENABLED(CONFIG_INT340X_THERMAL)) - acpi_create_platform_device(adev, NULL); + /* + * Do not attach INT340X devices until platform drivers are loaded. + * Enumeration of INT340X ACPI device objects on the platform bus + * should be done by thermal drivers. + */ return 1; } =20 diff --git a/drivers/acpi/fan_core.c b/drivers/acpi/fan_core.c index 04ff608f2ff0..61681ff24477 100644 --- a/drivers/acpi/fan_core.c +++ b/drivers/acpi/fan_core.c @@ -463,7 +463,7 @@ static struct platform_driver acpi_fan_driver =3D { }, }; =20 -module_platform_driver(acpi_fan_driver); +module_acpi_platform_driver(acpi_fan_driver); =20 MODULE_AUTHOR("Paul Diefenbaugh"); MODULE_DESCRIPTION("ACPI Fan Driver"); diff --git a/drivers/thermal/intel/int340x_thermal/int3400_thermal.c b/driv= ers/thermal/intel/int340x_thermal/int3400_thermal.c index 6311125c3ebd..0005961328fc 100644 --- a/drivers/thermal/intel/int340x_thermal/int3400_thermal.c +++ b/drivers/thermal/intel/int340x_thermal/int3400_thermal.c @@ -699,7 +699,7 @@ static struct platform_driver int3400_thermal_driver = =3D { }, }; =20 -module_platform_driver(int3400_thermal_driver); +module_acpi_platform_driver(int3400_thermal_driver); =20 MODULE_DESCRIPTION("INT3400 Thermal driver"); MODULE_AUTHOR("Zhang Rui "); diff --git a/drivers/thermal/intel/int340x_thermal/int3401_thermal.c b/driv= ers/thermal/intel/int340x_thermal/int3401_thermal.c index e0603f218d2e..d496f8b171e0 100644 --- a/drivers/thermal/intel/int340x_thermal/int3401_thermal.c +++ b/drivers/thermal/intel/int340x_thermal/int3401_thermal.c @@ -69,7 +69,7 @@ static struct platform_driver int3401_driver =3D { }, }; =20 -module_platform_driver(int3401_driver); +module_acpi_platform_driver(int3401_driver); =20 MODULE_AUTHOR("Srinivas Pandruvada "); MODULE_DESCRIPTION("Processor Thermal Reporting Device Driver"); diff --git a/drivers/thermal/intel/int340x_thermal/int3402_thermal.c b/driv= ers/thermal/intel/int340x_thermal/int3402_thermal.c index 213d4535f2c1..d06c06fadce5 100644 --- a/drivers/thermal/intel/int340x_thermal/int3402_thermal.c +++ b/drivers/thermal/intel/int340x_thermal/int3402_thermal.c @@ -100,7 +100,7 @@ static struct platform_driver int3402_thermal_driver = =3D { }, }; =20 -module_platform_driver(int3402_thermal_driver); +module_acpi_platform_driver(int3402_thermal_driver); =20 MODULE_DESCRIPTION("INT3402 Thermal driver"); MODULE_LICENSE("GPL"); diff --git a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c b/driv= ers/thermal/intel/int340x_thermal/int3403_thermal.c index d246c69d4872..33735515b47d 100644 --- a/drivers/thermal/intel/int340x_thermal/int3403_thermal.c +++ b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c @@ -284,7 +284,7 @@ static struct platform_driver int3403_driver =3D { }, }; =20 -module_platform_driver(int3403_driver); +module_acpi_platform_driver(int3403_driver); =20 MODULE_AUTHOR("Srinivas Pandruvada "); MODULE_LICENSE("GPL v2"); diff --git a/drivers/thermal/intel/int340x_thermal/int3406_thermal.c b/driv= ers/thermal/intel/int340x_thermal/int3406_thermal.c index d05ca8bc4061..03cc026cdffb 100644 --- a/drivers/thermal/intel/int340x_thermal/int3406_thermal.c +++ b/drivers/thermal/intel/int340x_thermal/int3406_thermal.c @@ -203,7 +203,7 @@ static struct platform_driver int3406_thermal_driver = =3D { }, }; =20 -module_platform_driver(int3406_thermal_driver); +module_acpi_platform_driver(int3406_thermal_driver); =20 MODULE_DESCRIPTION("INT3406 Thermal driver"); MODULE_LICENSE("GPL v2"); --=20 2.51.0.618.g983fd99d29-goog