diff --git a/patches.kernel.org/6.2.1-008-platform-x86-amd-pmf-Add-depends-on-CONFIG_POWE.patch b/patches.kernel.org/6.2.1-008-platform-x86-amd-pmf-Add-depends-on-CONFIG_POWE.patch new file mode 100644 index 0000000..cb5ade0 --- /dev/null +++ b/patches.kernel.org/6.2.1-008-platform-x86-amd-pmf-Add-depends-on-CONFIG_POWE.patch @@ -0,0 +1,49 @@ +From: Shyam Sundar S K +Date: Mon, 13 Feb 2023 17:44:57 +0530 +Subject: [PATCH] platform/x86/amd/pmf: Add depends on CONFIG_POWER_SUPPLY +References: bsc#1012628 +Patch-mainline: 6.2.1 +Git-commit: 3004e8d2a0a98bbf4223ae146464fadbff68bf78 + +commit 3004e8d2a0a98bbf4223ae146464fadbff68bf78 upstream. + +It is reported that amd_pmf driver is missing "depends on" for +CONFIG_POWER_SUPPLY causing the following build error. + +ld: drivers/platform/x86/amd/pmf/core.o: in function `amd_pmf_remove': +core.c:(.text+0x10): undefined reference to `power_supply_unreg_notifier' +ld: drivers/platform/x86/amd/pmf/core.o: in function `amd_pmf_probe': +core.c:(.text+0x38f): undefined reference to `power_supply_reg_notifier' +make[1]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1 +make: *** [Makefile:1248: vmlinux] Error 2 + +Add this to the Kconfig file. + +Link: https://bugzilla.kernel.org/show_bug.cgi?id=217028 +Fixes: c5258d39fc4c ("platform/x86/amd/pmf: Add helper routine to update SPS thermals") +Signed-off-by: Shyam Sundar S K +Link: https://lore.kernel.org/r/20230213121457.1764463-1-Shyam-sundar.S-k@amd.com +Cc: stable@vger.kernel.org +Reviewed-by: Hans de Goede +Signed-off-by: Hans de Goede +Signed-off-by: Greg Kroah-Hartman +Signed-off-by: Jiri Slaby +--- + 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 c375498c..6d89528c 100644 +--- a/drivers/platform/x86/amd/pmf/Kconfig ++++ b/drivers/platform/x86/amd/pmf/Kconfig +@@ -6,6 +6,7 @@ + config AMD_PMF + tristate "AMD Platform Management Framework" + depends on ACPI && PCI ++ depends on POWER_SUPPLY + select ACPI_PLATFORM_PROFILE + help + This driver provides support for the AMD Platform Management Framework. +-- +2.35.3 + diff --git a/series.conf b/series.conf index c27df2b..ac493e8 100644 --- a/series.conf +++ b/series.conf @@ -34,6 +34,7 @@ patches.kernel.org/6.2.1-005-HID-mcp-2221-prevent-UAF-in-delayed-work.patch patches.kernel.org/6.2.1-006-wifi-mwifiex-Add-missing-compatible-string-for-.patch patches.kernel.org/6.2.1-007-audit-update-the-mailing-list-in-MAINTAINERS.patch + patches.kernel.org/6.2.1-008-platform-x86-amd-pmf-Add-depends-on-CONFIG_POWE.patch ######################################################## # Build fixes that apply to the vanilla kernel too.