[PATCH 1/3] acpi: method: add _WPP method test (introduced in ACPI 6.1)

Alex Hung alex.hung at canonical.com
Tue Jun 7 03:54:44 UTC 2016


Signed-off-by: Alex Hung <alex.hung at canonical.com>
---
 src/acpi/method/method.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
index 7adb3fa..dcf3eb7 100644
--- a/src/acpi/method/method.c
+++ b/src/acpi/method/method.c
@@ -246,6 +246,7 @@
  * _UPP 	 Y
  * _VPO 	 Y
  * _WAK 	 Y
+ * _WPP 	 Y
  * _Wxx 	 n/a
  * _WDG 	 N
  * _WED 	 N
@@ -5621,6 +5622,15 @@ static int method_test_PMM(fwts_framework *fw)
 }
 
 /*
+ * Section 10.5 Wireless Power Controllers
+ */
+static int method_test_WPP(fwts_framework *fw)
+{
+	return method_evaluate_method(fw, METHOD_OPTIONAL,
+		"_WPP", NULL, 0, method_test_integer_return, NULL);
+}
+
+/*
  * Section 11.3 Fan Devices
  */
 static void method_test_FIF_return(
@@ -7077,6 +7087,9 @@ static fwts_framework_minor_test method_tests[] = {
 	/* { method_test_PTP, "Test _PTP (Power Trip Points)." }, */
 	/* { method_test_SHL, "Test _SHL (Set Hardware Limit)." }, */
 
+	/* Section 10.5 Wireless Power Controllers */
+	{ method_test_WPP, "Test _WPP (Wireless Power Polling)." },
+
 	/* Section 11.3 Fan Devices */
 
 	{ method_test_FIF, "Test _FIF (Fan Information)." },
-- 
2.7.4




More information about the fwts-devel mailing list