* [PATCH] platform/x86/amd/pmf: constrain ACPI button linkage
@ 2026-11-30 12:28 Pengpeng Hou
2026-11-30 15:31 ` Shyam Sundar S K
0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-11-30 12:28 UTC (permalink / raw)
To: Shyam-sundar.S-k
Cc: hansg, ilpo.jarvinen, platform-driver-x86, linux-kernel, hppiscas
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] platform/x86/amd/pmf: constrain ACPI button linkage
2026-11-30 12:28 [PATCH] platform/x86/amd/pmf: constrain ACPI button linkage Pengpeng Hou
@ 2026-11-30 15:31 ` Shyam Sundar S K
0 siblings, 0 replies; 2+ messages in thread
From: Shyam Sundar S K @ 2026-11-30 15:31 UTC (permalink / raw)
To: Pengpeng Hou; +Cc: hansg, ilpo.jarvinen, platform-driver-x86, linux-kernel
On 30-11-2026 17:58, Pengpeng Hou wrote:
> [You don't often get email from hppiscas@163.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> 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>
Thanks for the fix. I could reproduce the link failure with
AMD_PMF=y and ACPI_BUTTON=m, and the change resolves it.
Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Thanks,
Shyam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-30 15:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30 12:28 [PATCH] platform/x86/amd/pmf: constrain ACPI button linkage Pengpeng Hou
2026-11-30 15:31 ` Shyam Sundar S K
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®