From: Greg Kroah-Hartman Date: Tue, 19 Aug 2025 12:33:29 +0000 (+0200) Subject: 6.16-stable patches X-Git-Tag: v6.12.43~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e86ee03443f82a4225fdc0650e60c11f47e2f9f9;p=thirdparty%2Fkernel%2Fstable-queue.git 6.16-stable patches added patches: acpi-return-enodev-from-acpi_parse_spcr-when-spcr-support-is-disabled.patch --- diff --git a/queue-6.16/acpi-return-enodev-from-acpi_parse_spcr-when-spcr-support-is-disabled.patch b/queue-6.16/acpi-return-enodev-from-acpi_parse_spcr-when-spcr-support-is-disabled.patch new file mode 100644 index 0000000000..c049deb5f1 --- /dev/null +++ b/queue-6.16/acpi-return-enodev-from-acpi_parse_spcr-when-spcr-support-is-disabled.patch @@ -0,0 +1,39 @@ +From b9f58d3572a8e1ef707b941eae58ec4014b9269d Mon Sep 17 00:00:00 2001 +From: Li Chen +Date: Fri, 20 Jun 2025 21:13:07 +0800 +Subject: ACPI: Return -ENODEV from acpi_parse_spcr() when SPCR support is disabled + +From: Li Chen + +commit b9f58d3572a8e1ef707b941eae58ec4014b9269d upstream. + +If CONFIG_ACPI_SPCR_TABLE is disabled, acpi_parse_spcr() +currently returns 0, which may incorrectly suggest that +SPCR parsing was successful. This patch changes the behavior +to return -ENODEV to clearly indicate that SPCR support +is not available. + +This prepares the codebase for future changes that depend +on acpi_parse_spcr() failure detection, such as suppressing +misleading console messages. + +Signed-off-by: Li Chen +Acked-by: Hanjun Guo +Link: https://lore.kernel.org/r/20250620131309.126555-2-me@linux.beauty +Signed-off-by: Catalin Marinas +Signed-off-by: Greg Kroah-Hartman +--- + include/linux/acpi.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/include/linux/acpi.h ++++ b/include/linux/acpi.h +@@ -1503,7 +1503,7 @@ int acpi_parse_spcr(bool enable_earlycon + #else + static inline int acpi_parse_spcr(bool enable_earlycon, bool enable_console) + { +- return 0; ++ return -ENODEV; + } + #endif + diff --git a/queue-6.16/series b/queue-6.16/series index bb1a9c84ff..f34a784eb9 100644 --- a/queue-6.16/series +++ b/queue-6.16/series @@ -562,3 +562,4 @@ irqchip-mvebu-gicp-use-resource_size-for-ioremap.patch dm-split-write-bios-on-zone-boundaries-when-zone-append-is-not-emulated.patch io_uring-zcrx-fix-null-ifq-on-area-destruction.patch io_uring-zcrx-don-t-leak-pages-on-account-failure.patch +acpi-return-enodev-from-acpi_parse_spcr-when-spcr-support-is-disabled.patch