Patch "ACPICA: acpi_get_sleep_type_data: Reduce warnings" has been added to the 4.4-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
ACPICA: acpi_get_sleep_type_data: Reduce warnings
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
acpica-acpi_get_sleep_type_data-reduce-warnings.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
a59b679ab85635737947310323f2f2bcfa0664a7Mon Sep 17 00:00:00 2001
From: Prarit Bhargava <[email protected]>
Date: Tue, 29 Dec 2015 13:52:41 +0800
Subject: ACPICA: acpi_get_sleep_type_data: Reduce warnings
From: Prarit Bhargava <[email protected]>
commit a59b679ab85635737947310323f2f2bcfa0664a7 upstream.
ACPICA commit 7bb77313091e52a846df4c9c2bea90be31bfb9d8
Eliminate warnings for "not found" _Sx errors, since these are optional. Original NOT_FOUND status is still returned.
Original changes by Prarit Bhargava.
ACPICA BZ 1208.
--- drivers/acpi/acpica/hwxface.c | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-)
drivers/acpi/acpica/hwxface.c +17 -7
@@ -504,11 +504,20 @@ acpi_get_sleep_type_data(u8 sleep_state,* Evaluate the \_Sx namespace object containing the register values * for this state */ - info->relative_pathname = -ACPI_CAST_PTR (char, acpi_gbl_sleep_state_names[sleep_state]); + info->relative_pathname =ACPI_CAST_PTR (char, + acpi_gbl_sleep_state_names + [sleep_state]); + status =acpi_ns_evaluate (info);if (ACPI_FAILURE (status)) { - goto cleanup; +if (status ==AE_NOT_FOUND ) { + +/* The _Sx states are optional, ignore NOT_FOUND */ + + goto final_cleanup; + } + + goto warning_cleanup; }/* Must have a return object */
@@ -517,7 +526,7 @@ acpi_get_sleep_type_data(u8 sleep_state,ACPI_ERROR ((AE_INFO ,"No Sleep State object returned from [%s]" , info->relative_pathname)); status =AE_AML_NO_RETURN_VALUE ; - goto cleanup; + goto warning_cleanup; }/* Return object must be of type Package */
@@ -526,7 +535,7 @@ acpi_get_sleep_type_data(u8 sleep_state,ACPI_ERROR ((AE_INFO ,"Sleep State return object is not a Package" )); status =AE_AML_OPERAND_TYPE ; - goto cleanup1; + goto return_value_cleanup; }/*
@@ -570,16 +579,17 @@ acpi_get_sleep_type_data(u8 sleep_state,break ; } -cleanup1: +return_value_cleanup:acpi_ut_remove_reference (info->return_object); -cleanup: +warning_cleanup:if (ACPI_FAILURE (status)) {ACPI_EXCEPTION ((AE_INFO , status,"While evaluating Sleep State [%s]" , info->relative_pathname)); } +final_cleanup:ACPI_FREE (info);return_ACPI_STATUS (status); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/acpica-acpi_get_sleep_type_data-reduce-warnings.patch