From: Pengpeng Hou <hppiscas@163.com>
To: Shyam-sundar.S-k@amd.com
Cc: hansg@kernel.org, ilpo.jarvinen@linux.intel.com,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, hppiscas@163.com
Subject: [PATCH] platform/x86/amd/pmf: constrain ACPI button linkage
Date: Mon, 30 Nov 2026 20:28:00 +0800 [thread overview]
Message-ID: <20261130122800.70908-1-hppiscas@163.com> (raw)
The PMF input collection calls acpi_lid_open(). With AMD_PMF=y and
ACPI_BUTTON=m, button.h exposes the external declaration, but the
button implementation is not linked into vmlinux.
Constrain the optional dependency to exclude that combination. Keep
ACPI_BUTTON=n supported through the existing stub rather than
forcing the button driver on.
The issue was found by our static-analysis tool and manually reviewed.
Fixes: f4627dfd0e19 ("platform/x86/amd/pmf: Add support to get inputs from other subsystems")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
AI assistance: gpt 5 (patch preparation and review).
drivers/platform/x86/amd/pmf/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/amd/pmf/Kconfig b/drivers/platform/x86/amd/pmf/Kconfig
index ad4faf1..b7e5f35 100644
--- a/drivers/platform/x86/amd/pmf/Kconfig
+++ b/drivers/platform/x86/amd/pmf/Kconfig
@@ -12,6 +12,7 @@ config AMD_PMF
depends on TEE && AMDTEE
depends on AMD_SFH_HID
depends on HAS_IOMEM
+ depends on ACPI_BUTTON || !ACPI_BUTTON
help
This driver provides support for the AMD Platform Management Framework.
The goal is to enhance end user experience by making AMD PCs smarter,
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
next reply other threads:[~2026-11-30 12:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 12:28 Pengpeng Hou [this message]
2026-11-30 15:31 ` Shyam Sundar S K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130122800.70908-1-hppiscas@163.com \
--to=hppiscas@163.com \
--cc=Shyam-sundar.S-k@amd.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®